duckscript/test/std/collections/is_array_test.ds
2020-01-31 14:41:31 +00:00

23 lines
324 B
Plaintext

fn test_array_found
arr = array 1 2 3
value = is_array ${arr}
assert ${value}
released = release ${arr}
assert ${released}
end
fn test_not_array
arr = set true
value = is_array ${arr}
assert_false ${value}
end
fn test_not_found
value = is_array ${arr}
assert_false ${value}
end