wuz/tests/test_is.wuz

17 lines
316 B
Plaintext
Raw Normal View History

assert 5 is int
assert 5.9 is float
assert false is bool
assert "salut" is str
assert !(5 is float)
assert !(5.9 is bool)
assert !(false is str)
assert !("salut" is int)
assert [2, 4, 6] is array<int>
assert [[2, 4], [7, 9]] is array<array<int>>
assert int is type
assert type is type
assert (5.2 is int) is bool