disagreement/tests/test_object.py
Slipstream 132521fa39
Some checks failed
Deploy MkDocs / deploy (push) Has been cancelled
Add Object class and partial docs (#113)
2025-06-15 20:39:23 -06:00

16 lines
272 B
Python

from disagreement.object import Object
def test_object_int():
obj = Object(123)
assert int(obj) == 123
def test_object_equality_and_hash():
a = Object(1)
b = Object(1)
c = Object(2)
assert a == b
assert a != c
assert hash(a) == hash(b)