mirror of
https://github.com/sagiegurari/duckscript
synced 2024-09-15 22:19:51 +00:00
19 lines
234 B
Plaintext
19 lines
234 B
Plaintext
|
|
fn test_empty
|
|
output = length ""
|
|
|
|
assert_eq ${output} 0
|
|
end
|
|
|
|
fn test_not_empty
|
|
output = length "test"
|
|
|
|
assert_eq ${output} 4
|
|
end
|
|
|
|
fn test_undefined
|
|
output = length ${test_undefined}
|
|
|
|
assert_eq ${output} 0
|
|
end
|