mirror of
https://github.com/sagiegurari/duckscript
synced 2024-09-15 22:19:51 +00:00
23 lines
324 B
Plaintext
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
|