Browse Source
Implement type virtual equality method support and implement comparisons for listspull/157/head
Damien George
11 years ago
3 changed files with 121 additions and 0 deletions
@ -0,0 +1,50 @@ |
|||
print([] == []) |
|||
print([] > []) |
|||
print([] < []) |
|||
print([] == [1]) |
|||
print([1] == []) |
|||
print([] > [1]) |
|||
print([1] > []) |
|||
print([] < [1]) |
|||
print([1] < []) |
|||
print([] >= [1]) |
|||
print([1] >= []) |
|||
print([] <= [1]) |
|||
print([1] <= []) |
|||
|
|||
print([1] == [1]) |
|||
print([1] != [1]) |
|||
print([1] == [2]) |
|||
print([1] == [1, 0]) |
|||
|
|||
print([1] > [1]) |
|||
print([1] > [2]) |
|||
print([2] > [1]) |
|||
print([1, 0] > [1]) |
|||
print([1, -1] > [1]) |
|||
print([1] > [1, 0]) |
|||
print([1] > [1, -1]) |
|||
|
|||
print([1] < [1]) |
|||
print([2] < [1]) |
|||
print([1] < [2]) |
|||
print([1] < [1, 0]) |
|||
print([1] < [1, -1]) |
|||
print([1, 0] < [1]) |
|||
print([1, -1] < [1]) |
|||
|
|||
print([1] >= [1]) |
|||
print([1] >= [2]) |
|||
print([2] >= [1]) |
|||
print([1, 0] >= [1]) |
|||
print([1, -1] >= [1]) |
|||
print([1] >= [1, 0]) |
|||
print([1] >= [1, -1]) |
|||
|
|||
print([1] <= [1]) |
|||
print([2] <= [1]) |
|||
print([1] <= [2]) |
|||
print([1] <= [1, 0]) |
|||
print([1] <= [1, -1]) |
|||
print([1, 0] <= [1]) |
|||
print([1, -1] <= [1]) |
Loading…
Reference in new issue