mirror of https://github.com/python/cpython.git
188 lines
6.9 KiB
Plaintext
188 lines
6.9 KiB
Plaintext
test_richcmp
|
|
|
|
operator: <
|
|
|
|
| Number(0) | Number(1) | Number(2) |
|
|
----------+-----------+-----------+-----------+-
|
|
Number(0) | 0 | 1 | 1 |
|
|
Number(1) | 0 | 0 | 1 |
|
|
Number(2) | 0 | 0 | 0 |
|
|
----------+-----------+-----------+-----------+-
|
|
|
|
operator: <=
|
|
|
|
| Number(0) | Number(1) | Number(2) |
|
|
----------+-----------+-----------+-----------+-
|
|
Number(0) | 1 | 1 | 1 |
|
|
Number(1) | 0 | 1 | 1 |
|
|
Number(2) | 0 | 0 | 1 |
|
|
----------+-----------+-----------+-----------+-
|
|
|
|
operator: ==
|
|
|
|
| Number(0) | Number(1) | Number(2) |
|
|
----------+-----------+-----------+-----------+-
|
|
Number(0) | 1 | 0 | 0 |
|
|
Number(1) | 0 | 1 | 0 |
|
|
Number(2) | 0 | 0 | 1 |
|
|
----------+-----------+-----------+-----------+-
|
|
|
|
operator: !=
|
|
|
|
| Number(0) | Number(1) | Number(2) |
|
|
----------+-----------+-----------+-----------+-
|
|
Number(0) | 0 | 1 | 1 |
|
|
Number(1) | 1 | 0 | 1 |
|
|
Number(2) | 1 | 1 | 0 |
|
|
----------+-----------+-----------+-----------+-
|
|
|
|
operator: >
|
|
|
|
| Number(0) | Number(1) | Number(2) |
|
|
----------+-----------+-----------+-----------+-
|
|
Number(0) | 0 | 0 | 0 |
|
|
Number(1) | 1 | 0 | 0 |
|
|
Number(2) | 1 | 1 | 0 |
|
|
----------+-----------+-----------+-----------+-
|
|
|
|
operator: >=
|
|
|
|
| Number(0) | Number(1) | Number(2) |
|
|
----------+-----------+-----------+-----------+-
|
|
Number(0) | 1 | 0 | 0 |
|
|
Number(1) | 1 | 1 | 0 |
|
|
Number(2) | 1 | 1 | 1 |
|
|
----------+-----------+-----------+-----------+-
|
|
|
|
**************************************************
|
|
|
|
operator: <
|
|
|
|
| Number(0) | Number(1) | Number(2) |
|
|
----------+-----------+-----------+-----------+-
|
|
0 | 0 | 1 | 1 |
|
|
1 | 0 | 0 | 1 |
|
|
2 | 0 | 0 | 0 |
|
|
----------+-----------+-----------+-----------+-
|
|
|
|
operator: <=
|
|
|
|
| Number(0) | Number(1) | Number(2) |
|
|
----------+-----------+-----------+-----------+-
|
|
0 | 1 | 1 | 1 |
|
|
1 | 0 | 1 | 1 |
|
|
2 | 0 | 0 | 1 |
|
|
----------+-----------+-----------+-----------+-
|
|
|
|
operator: ==
|
|
|
|
| Number(0) | Number(1) | Number(2) |
|
|
----------+-----------+-----------+-----------+-
|
|
0 | 1 | 0 | 0 |
|
|
1 | 0 | 1 | 0 |
|
|
2 | 0 | 0 | 1 |
|
|
----------+-----------+-----------+-----------+-
|
|
|
|
operator: !=
|
|
|
|
| Number(0) | Number(1) | Number(2) |
|
|
----------+-----------+-----------+-----------+-
|
|
0 | 0 | 1 | 1 |
|
|
1 | 1 | 0 | 1 |
|
|
2 | 1 | 1 | 0 |
|
|
----------+-----------+-----------+-----------+-
|
|
|
|
operator: >
|
|
|
|
| Number(0) | Number(1) | Number(2) |
|
|
----------+-----------+-----------+-----------+-
|
|
0 | 0 | 0 | 0 |
|
|
1 | 1 | 0 | 0 |
|
|
2 | 1 | 1 | 0 |
|
|
----------+-----------+-----------+-----------+-
|
|
|
|
operator: >=
|
|
|
|
| Number(0) | Number(1) | Number(2) |
|
|
----------+-----------+-----------+-----------+-
|
|
0 | 1 | 0 | 0 |
|
|
1 | 1 | 1 | 0 |
|
|
2 | 1 | 1 | 1 |
|
|
----------+-----------+-----------+-----------+-
|
|
|
|
**************************************************
|
|
|
|
operator: <
|
|
|
|
| 0 | 1 | 2 |
|
|
----------+-----------+-----------+-----------+-
|
|
Number(0) | 0 | 1 | 1 |
|
|
Number(1) | 0 | 0 | 1 |
|
|
Number(2) | 0 | 0 | 0 |
|
|
----------+-----------+-----------+-----------+-
|
|
|
|
operator: <=
|
|
|
|
| 0 | 1 | 2 |
|
|
----------+-----------+-----------+-----------+-
|
|
Number(0) | 1 | 1 | 1 |
|
|
Number(1) | 0 | 1 | 1 |
|
|
Number(2) | 0 | 0 | 1 |
|
|
----------+-----------+-----------+-----------+-
|
|
|
|
operator: ==
|
|
|
|
| 0 | 1 | 2 |
|
|
----------+-----------+-----------+-----------+-
|
|
Number(0) | 1 | 0 | 0 |
|
|
Number(1) | 0 | 1 | 0 |
|
|
Number(2) | 0 | 0 | 1 |
|
|
----------+-----------+-----------+-----------+-
|
|
|
|
operator: !=
|
|
|
|
| 0 | 1 | 2 |
|
|
----------+-----------+-----------+-----------+-
|
|
Number(0) | 0 | 1 | 1 |
|
|
Number(1) | 1 | 0 | 1 |
|
|
Number(2) | 1 | 1 | 0 |
|
|
----------+-----------+-----------+-----------+-
|
|
|
|
operator: >
|
|
|
|
| 0 | 1 | 2 |
|
|
----------+-----------+-----------+-----------+-
|
|
Number(0) | 0 | 0 | 0 |
|
|
Number(1) | 1 | 0 | 0 |
|
|
Number(2) | 1 | 1 | 0 |
|
|
----------+-----------+-----------+-----------+-
|
|
|
|
operator: >=
|
|
|
|
| 0 | 1 | 2 |
|
|
----------+-----------+-----------+-----------+-
|
|
Number(0) | 1 | 0 | 0 |
|
|
Number(1) | 1 | 1 | 0 |
|
|
Number(2) | 1 | 1 | 1 |
|
|
----------+-----------+-----------+-----------+-
|
|
|
|
**************************************************
|
|
Vector([0, 1, 2, 3, 4]) < Vector([2, 2, 2, 2, 2]) -> Vector([1, 1, 0, 0, 0])
|
|
Vector([0, 1, 2, 3, 4]) < [2, 2, 2, 2, 2] -> Vector([1, 1, 0, 0, 0])
|
|
[0, 1, 2, 3, 4] < Vector([2, 2, 2, 2, 2]) -> Vector([1, 1, 0, 0, 0])
|
|
Vector([0, 1, 2, 3, 4]) <= Vector([2, 2, 2, 2, 2]) -> Vector([1, 1, 1, 0, 0])
|
|
Vector([0, 1, 2, 3, 4]) <= [2, 2, 2, 2, 2] -> Vector([1, 1, 1, 0, 0])
|
|
[0, 1, 2, 3, 4] <= Vector([2, 2, 2, 2, 2]) -> Vector([1, 1, 1, 0, 0])
|
|
Vector([0, 1, 2, 3, 4]) == Vector([2, 2, 2, 2, 2]) -> Vector([0, 0, 1, 0, 0])
|
|
Vector([0, 1, 2, 3, 4]) == [2, 2, 2, 2, 2] -> Vector([0, 0, 1, 0, 0])
|
|
[0, 1, 2, 3, 4] == Vector([2, 2, 2, 2, 2]) -> Vector([0, 0, 1, 0, 0])
|
|
Vector([0, 1, 2, 3, 4]) != Vector([2, 2, 2, 2, 2]) -> Vector([1, 1, 0, 1, 1])
|
|
Vector([0, 1, 2, 3, 4]) != [2, 2, 2, 2, 2] -> Vector([1, 1, 0, 1, 1])
|
|
[0, 1, 2, 3, 4] != Vector([2, 2, 2, 2, 2]) -> Vector([1, 1, 0, 1, 1])
|
|
Vector([0, 1, 2, 3, 4]) > Vector([2, 2, 2, 2, 2]) -> Vector([0, 0, 0, 1, 1])
|
|
Vector([0, 1, 2, 3, 4]) > [2, 2, 2, 2, 2] -> Vector([0, 0, 0, 1, 1])
|
|
[0, 1, 2, 3, 4] > Vector([2, 2, 2, 2, 2]) -> Vector([0, 0, 0, 1, 1])
|
|
Vector([0, 1, 2, 3, 4]) >= Vector([2, 2, 2, 2, 2]) -> Vector([0, 0, 1, 1, 1])
|
|
Vector([0, 1, 2, 3, 4]) >= [2, 2, 2, 2, 2] -> Vector([0, 0, 1, 1, 1])
|
|
[0, 1, 2, 3, 4] >= Vector([2, 2, 2, 2, 2]) -> Vector([0, 0, 1, 1, 1])
|