wuz/tests/test_types.wuz

32 lines
858 B
Plaintext

assert int == int
assert float == float
assert str == str
assert bool == bool
assert array<int> == array<int>
assert array<array<int>> == array<array<int>>
assert int != float
assert float != str
assert str != bool
assert bool != int
assert array<float> != array<int>
assert array<array<int>> != array<int>
assert str * float == str * float
assert str * float * array<int> == str * float * array<int>
assert str * float * array<float> != str * float * array<int>
assert str + float == str + float
assert (str + float) * int == (str + float) * int
assert (float + float) * int != (str + float) * int
assert array<int + float> == array<int + float>
assert array<int * float> != array<int + float>
assert int + float == float + int
assert int * bool == bool * int
assert int * str * bool == bool * int * str
assert array<int, float> != array<float, int>