2001-01-18 11:48:05 -04:00
|
|
|
test_richcmp
|
|
|
|
|
|
|
|
operator: <
|
|
|
|
|
|
|
|
| Number(0) | Number(1) | Number(2) |
|
|
|
|
----------+-----------+-----------+-----------+-
|
2002-04-03 18:41:51 -04:00
|
|
|
Number(0) | False | True | True |
|
|
|
|
Number(1) | False | False | True |
|
|
|
|
Number(2) | False | False | False |
|
2001-01-18 11:48:05 -04:00
|
|
|
----------+-----------+-----------+-----------+-
|
|
|
|
|
|
|
|
operator: <=
|
|
|
|
|
|
|
|
| Number(0) | Number(1) | Number(2) |
|
|
|
|
----------+-----------+-----------+-----------+-
|
2002-04-03 18:41:51 -04:00
|
|
|
Number(0) | True | True | True |
|
|
|
|
Number(1) | False | True | True |
|
|
|
|
Number(2) | False | False | True |
|
2001-01-18 11:48:05 -04:00
|
|
|
----------+-----------+-----------+-----------+-
|
|
|
|
|
|
|
|
operator: ==
|
|
|
|
|
|
|
|
| Number(0) | Number(1) | Number(2) |
|
|
|
|
----------+-----------+-----------+-----------+-
|
2002-04-03 18:41:51 -04:00
|
|
|
Number(0) | True | False | False |
|
|
|
|
Number(1) | False | True | False |
|
|
|
|
Number(2) | False | False | True |
|
2001-01-18 11:48:05 -04:00
|
|
|
----------+-----------+-----------+-----------+-
|
|
|
|
|
|
|
|
operator: !=
|
|
|
|
|
|
|
|
| Number(0) | Number(1) | Number(2) |
|
|
|
|
----------+-----------+-----------+-----------+-
|
2002-04-03 18:41:51 -04:00
|
|
|
Number(0) | False | True | True |
|
|
|
|
Number(1) | True | False | True |
|
|
|
|
Number(2) | True | True | False |
|
2001-01-18 11:48:05 -04:00
|
|
|
----------+-----------+-----------+-----------+-
|
|
|
|
|
|
|
|
operator: >
|
|
|
|
|
|
|
|
| Number(0) | Number(1) | Number(2) |
|
|
|
|
----------+-----------+-----------+-----------+-
|
2002-04-03 18:41:51 -04:00
|
|
|
Number(0) | False | False | False |
|
|
|
|
Number(1) | True | False | False |
|
|
|
|
Number(2) | True | True | False |
|
2001-01-18 11:48:05 -04:00
|
|
|
----------+-----------+-----------+-----------+-
|
|
|
|
|
|
|
|
operator: >=
|
|
|
|
|
|
|
|
| Number(0) | Number(1) | Number(2) |
|
|
|
|
----------+-----------+-----------+-----------+-
|
2002-04-03 18:41:51 -04:00
|
|
|
Number(0) | True | False | False |
|
|
|
|
Number(1) | True | True | False |
|
|
|
|
Number(2) | True | True | True |
|
2001-01-18 11:48:05 -04:00
|
|
|
----------+-----------+-----------+-----------+-
|
|
|
|
|
|
|
|
**************************************************
|
|
|
|
|
|
|
|
operator: <
|
|
|
|
|
|
|
|
| Number(0) | Number(1) | Number(2) |
|
|
|
|
----------+-----------+-----------+-----------+-
|
2002-04-03 18:41:51 -04:00
|
|
|
0 | False | True | True |
|
|
|
|
1 | False | False | True |
|
|
|
|
2 | False | False | False |
|
2001-01-18 11:48:05 -04:00
|
|
|
----------+-----------+-----------+-----------+-
|
|
|
|
|
|
|
|
operator: <=
|
|
|
|
|
|
|
|
| Number(0) | Number(1) | Number(2) |
|
|
|
|
----------+-----------+-----------+-----------+-
|
2002-04-03 18:41:51 -04:00
|
|
|
0 | True | True | True |
|
|
|
|
1 | False | True | True |
|
|
|
|
2 | False | False | True |
|
2001-01-18 11:48:05 -04:00
|
|
|
----------+-----------+-----------+-----------+-
|
|
|
|
|
|
|
|
operator: ==
|
|
|
|
|
|
|
|
| Number(0) | Number(1) | Number(2) |
|
|
|
|
----------+-----------+-----------+-----------+-
|
2002-04-03 18:41:51 -04:00
|
|
|
0 | True | False | False |
|
|
|
|
1 | False | True | False |
|
|
|
|
2 | False | False | True |
|
2001-01-18 11:48:05 -04:00
|
|
|
----------+-----------+-----------+-----------+-
|
|
|
|
|
|
|
|
operator: !=
|
|
|
|
|
|
|
|
| Number(0) | Number(1) | Number(2) |
|
|
|
|
----------+-----------+-----------+-----------+-
|
2002-04-03 18:41:51 -04:00
|
|
|
0 | False | True | True |
|
|
|
|
1 | True | False | True |
|
|
|
|
2 | True | True | False |
|
2001-01-18 11:48:05 -04:00
|
|
|
----------+-----------+-----------+-----------+-
|
|
|
|
|
|
|
|
operator: >
|
|
|
|
|
|
|
|
| Number(0) | Number(1) | Number(2) |
|
|
|
|
----------+-----------+-----------+-----------+-
|
2002-04-03 18:41:51 -04:00
|
|
|
0 | False | False | False |
|
|
|
|
1 | True | False | False |
|
|
|
|
2 | True | True | False |
|
2001-01-18 11:48:05 -04:00
|
|
|
----------+-----------+-----------+-----------+-
|
|
|
|
|
|
|
|
operator: >=
|
|
|
|
|
|
|
|
| Number(0) | Number(1) | Number(2) |
|
|
|
|
----------+-----------+-----------+-----------+-
|
2002-04-03 18:41:51 -04:00
|
|
|
0 | True | False | False |
|
|
|
|
1 | True | True | False |
|
|
|
|
2 | True | True | True |
|
2001-01-18 11:48:05 -04:00
|
|
|
----------+-----------+-----------+-----------+-
|
|
|
|
|
|
|
|
**************************************************
|
|
|
|
|
|
|
|
operator: <
|
|
|
|
|
|
|
|
| 0 | 1 | 2 |
|
|
|
|
----------+-----------+-----------+-----------+-
|
2002-04-03 18:41:51 -04:00
|
|
|
Number(0) | False | True | True |
|
|
|
|
Number(1) | False | False | True |
|
|
|
|
Number(2) | False | False | False |
|
2001-01-18 11:48:05 -04:00
|
|
|
----------+-----------+-----------+-----------+-
|
|
|
|
|
|
|
|
operator: <=
|
|
|
|
|
|
|
|
| 0 | 1 | 2 |
|
|
|
|
----------+-----------+-----------+-----------+-
|
2002-04-03 18:41:51 -04:00
|
|
|
Number(0) | True | True | True |
|
|
|
|
Number(1) | False | True | True |
|
|
|
|
Number(2) | False | False | True |
|
2001-01-18 11:48:05 -04:00
|
|
|
----------+-----------+-----------+-----------+-
|
|
|
|
|
|
|
|
operator: ==
|
|
|
|
|
|
|
|
| 0 | 1 | 2 |
|
|
|
|
----------+-----------+-----------+-----------+-
|
2002-04-03 18:41:51 -04:00
|
|
|
Number(0) | True | False | False |
|
|
|
|
Number(1) | False | True | False |
|
|
|
|
Number(2) | False | False | True |
|
2001-01-18 11:48:05 -04:00
|
|
|
----------+-----------+-----------+-----------+-
|
|
|
|
|
|
|
|
operator: !=
|
|
|
|
|
|
|
|
| 0 | 1 | 2 |
|
|
|
|
----------+-----------+-----------+-----------+-
|
2002-04-03 18:41:51 -04:00
|
|
|
Number(0) | False | True | True |
|
|
|
|
Number(1) | True | False | True |
|
|
|
|
Number(2) | True | True | False |
|
2001-01-18 11:48:05 -04:00
|
|
|
----------+-----------+-----------+-----------+-
|
|
|
|
|
|
|
|
operator: >
|
|
|
|
|
|
|
|
| 0 | 1 | 2 |
|
|
|
|
----------+-----------+-----------+-----------+-
|
2002-04-03 18:41:51 -04:00
|
|
|
Number(0) | False | False | False |
|
|
|
|
Number(1) | True | False | False |
|
|
|
|
Number(2) | True | True | False |
|
2001-01-18 11:48:05 -04:00
|
|
|
----------+-----------+-----------+-----------+-
|
|
|
|
|
|
|
|
operator: >=
|
|
|
|
|
|
|
|
| 0 | 1 | 2 |
|
|
|
|
----------+-----------+-----------+-----------+-
|
2002-04-03 18:41:51 -04:00
|
|
|
Number(0) | True | False | False |
|
|
|
|
Number(1) | True | True | False |
|
|
|
|
Number(2) | True | True | True |
|
2001-01-18 11:48:05 -04:00
|
|
|
----------+-----------+-----------+-----------+-
|
|
|
|
|
|
|
|
**************************************************
|
2002-04-03 18:41:51 -04:00
|
|
|
Vector([0, 1, 2, 3, 4]) < Vector([2, 2, 2, 2, 2]) -> Vector([True, True, False, False, False])
|
|
|
|
Vector([0, 1, 2, 3, 4]) < [2, 2, 2, 2, 2] -> Vector([True, True, False, False, False])
|
|
|
|
[0, 1, 2, 3, 4] < Vector([2, 2, 2, 2, 2]) -> Vector([True, True, False, False, False])
|
|
|
|
Vector([0, 1, 2, 3, 4]) <= Vector([2, 2, 2, 2, 2]) -> Vector([True, True, True, False, False])
|
|
|
|
Vector([0, 1, 2, 3, 4]) <= [2, 2, 2, 2, 2] -> Vector([True, True, True, False, False])
|
|
|
|
[0, 1, 2, 3, 4] <= Vector([2, 2, 2, 2, 2]) -> Vector([True, True, True, False, False])
|
|
|
|
Vector([0, 1, 2, 3, 4]) == Vector([2, 2, 2, 2, 2]) -> Vector([False, False, True, False, False])
|
|
|
|
Vector([0, 1, 2, 3, 4]) == [2, 2, 2, 2, 2] -> Vector([False, False, True, False, False])
|
|
|
|
[0, 1, 2, 3, 4] == Vector([2, 2, 2, 2, 2]) -> Vector([False, False, True, False, False])
|
|
|
|
Vector([0, 1, 2, 3, 4]) != Vector([2, 2, 2, 2, 2]) -> Vector([True, True, False, True, True])
|
|
|
|
Vector([0, 1, 2, 3, 4]) != [2, 2, 2, 2, 2] -> Vector([True, True, False, True, True])
|
|
|
|
[0, 1, 2, 3, 4] != Vector([2, 2, 2, 2, 2]) -> Vector([True, True, False, True, True])
|
|
|
|
Vector([0, 1, 2, 3, 4]) > Vector([2, 2, 2, 2, 2]) -> Vector([False, False, False, True, True])
|
|
|
|
Vector([0, 1, 2, 3, 4]) > [2, 2, 2, 2, 2] -> Vector([False, False, False, True, True])
|
|
|
|
[0, 1, 2, 3, 4] > Vector([2, 2, 2, 2, 2]) -> Vector([False, False, False, True, True])
|
|
|
|
Vector([0, 1, 2, 3, 4]) >= Vector([2, 2, 2, 2, 2]) -> Vector([False, False, True, True, True])
|
|
|
|
Vector([0, 1, 2, 3, 4]) >= [2, 2, 2, 2, 2] -> Vector([False, False, True, True, True])
|
|
|
|
[0, 1, 2, 3, 4] >= Vector([2, 2, 2, 2, 2]) -> Vector([False, False, True, True, True])
|