mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-29 17:22:56 +08:00
24 lines
472 B
Python
24 lines
472 B
Python
assert [1, 2, 3] == [1, 2, 3]
|
|
assert [1, 2, 3] != [1, 2, 4]
|
|
|
|
assert (1, 2, 3) == (1, 2, 3)
|
|
assert (1, 2, 3) != (1, 2, 4)
|
|
|
|
assert (1, 2, 3) != [1, 2, 3]
|
|
assert [1, 2, 3] != (1, 2, 3)
|
|
assert [1, 2, 3] != 1
|
|
|
|
assert 1 != (1, 2, 3)
|
|
|
|
assert ('a', 'b', 'c') == ('a', 'b', 'c')
|
|
assert ('a', 'b', 'c') != ('a', 'b', 'd')
|
|
|
|
dict1 = {'a': 1, 'b': 2, 'c': 3}
|
|
dict2 = {'a': 1, 'b': 2, 'c': 3}
|
|
dict3 = {'a': 1, 'b': 2, 'c': 4}
|
|
|
|
assert dict1 == dict2
|
|
assert dict1 != dict3
|
|
|
|
print("PASS")
|