cpython/Lib/test/output/test_compare

123 lines
2.7 KiB
Plaintext

test_compare
cmp(2, 2) = 0
cmp(2, 2.2) = -1
cmp(2, 2) = 0
cmp(2, (2+4j)) = -1
cmp(2, [1]) = -108
cmp(2, (2,)) = -116
cmp(2, None) = -78
cmp(2, <Empty>) = -1
cmp(2, <Coerce 3>) = -1
cmp(2, <Cmp 4>) = -1
cmp(2, <RCmp 5>) = -1
cmp(2.2, 2) = 1
cmp(2.2, 2.2) = 0
cmp(2.2, 2) = 1
cmp(2.2, (2+4j)) = 1
cmp(2.2, [1]) = -108
cmp(2.2, (2,)) = -116
cmp(2.2, None) = -78
cmp(2.2, <Empty>) = -1
cmp(2.2, <Coerce 3>) = -1
cmp(2.2, <Cmp 4>) = -1
cmp(2.2, <RCmp 5>) = -1
cmp(2, 2) = 0
cmp(2, 2.2) = -1
cmp(2, 2) = 0
cmp(2, (2+4j)) = -1
cmp(2, [1]) = -108
cmp(2, (2,)) = -116
cmp(2, None) = -78
cmp(2, <Empty>) = -1
cmp(2, <Coerce 3>) = -1
cmp(2, <Cmp 4>) = -1
cmp(2, <RCmp 5>) = -1
cmp((2+4j), 2) = 1
cmp((2+4j), 2.2) = -1
cmp((2+4j), 2) = 1
cmp((2+4j), (2+4j)) = 0
cmp((2+4j), [1]) = -108
cmp((2+4j), (2,)) = -116
cmp((2+4j), None) = -78
cmp((2+4j), <Empty>) = -1
cmp((2+4j), <Coerce 3>) = -1
cmp((2+4j), <Cmp 4>) = -1
cmp((2+4j), <RCmp 5>) = -1
cmp([1], 2) = 108
cmp([1], 2.2) = 108
cmp([1], 2) = 108
cmp([1], (2+4j)) = 108
cmp([1], [1]) = 0
cmp([1], (2,)) = -8
cmp([1], None) = 30
cmp([1], <Empty>) = -1
cmp([1], <Coerce 3>) = 1
cmp([1], <Cmp 4>) = 1
cmp([1], <RCmp 5>) = -1
cmp((2,), 2) = 116
cmp((2,), 2.2) = 116
cmp((2,), 2) = 116
cmp((2,), (2+4j)) = 116
cmp((2,), [1]) = 8
cmp((2,), (2,)) = 0
cmp((2,), None) = 38
cmp((2,), <Empty>) = -1
cmp((2,), <Coerce 3>) = 1
cmp((2,), <Cmp 4>) = 1
cmp((2,), <RCmp 5>) = -1
cmp(None, 2) = 78
cmp(None, 2.2) = 78
cmp(None, 2) = 78
cmp(None, (2+4j)) = 78
cmp(None, [1]) = -30
cmp(None, (2,)) = -38
cmp(None, None) = 0
cmp(None, <Empty>) = -1
cmp(None, <Coerce 3>) = 1
cmp(None, <Cmp 4>) = 1
cmp(None, <RCmp 5>) = -1
cmp(<Empty>, 2) = 1
cmp(<Empty>, 2.2) = 1
cmp(<Empty>, 2) = 1
cmp(<Empty>, (2+4j)) = 1
cmp(<Empty>, [1]) = 1
cmp(<Empty>, (2,)) = 1
cmp(<Empty>, None) = 1
cmp(<Empty>, <Empty>) = 0
cmp(<Empty>, <Coerce 3>) = -1
cmp(<Empty>, <Cmp 4>) = -1
cmp(<Empty>, <RCmp 5>) = 1
cmp(<Coerce 3>, 2) = 1
cmp(<Coerce 3>, 2.2) = 1
cmp(<Coerce 3>, 2) = 1
cmp(<Coerce 3>, (2+4j)) = 1
cmp(<Coerce 3>, [1]) = -1
cmp(<Coerce 3>, (2,)) = -1
cmp(<Coerce 3>, None) = -1
cmp(<Coerce 3>, <Empty>) = 1
cmp(<Coerce 3>, <Coerce 3>) = 0
cmp(<Coerce 3>, <Cmp 4>) = -1
cmp(<Coerce 3>, <RCmp 5>) = -1
cmp(<Cmp 4>, 2) = 1
cmp(<Cmp 4>, 2.2) = 1
cmp(<Cmp 4>, 2) = 1
cmp(<Cmp 4>, (2+4j)) = 1
cmp(<Cmp 4>, [1]) = -1
cmp(<Cmp 4>, (2,)) = -1
cmp(<Cmp 4>, None) = -1
cmp(<Cmp 4>, <Empty>) = -1
cmp(<Cmp 4>, <Coerce 3>) = 1
cmp(<Cmp 4>, <Cmp 4>) = 0
cmp(<Cmp 4>, <RCmp 5>) = -1
cmp(<RCmp 5>, 2) = 1
cmp(<RCmp 5>, 2.2) = 1
cmp(<RCmp 5>, 2) = 1
cmp(<RCmp 5>, (2+4j)) = 1
cmp(<RCmp 5>, [1]) = 1
cmp(<RCmp 5>, (2,)) = 1
cmp(<RCmp 5>, None) = 1
cmp(<RCmp 5>, <Empty>) = 1
cmp(<RCmp 5>, <Coerce 3>) = 1
cmp(<RCmp 5>, <Cmp 4>) = 1
cmp(<RCmp 5>, <RCmp 5>) = 0