duckscript/test/std/string/length_test.ds
2020-01-31 14:41:31 +00:00

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