Skip to content

Commit a5a79be

Browse files
committed
✅ Add first test
1 parent e99f529 commit a5a79be

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/test_main.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
from annotated_doc import Doc
2+
3+
4+
def test_doc_basic() -> None:
5+
doc = Doc("This is a test documentation.")
6+
assert doc.documentation == "This is a test documentation."
7+
assert repr(doc) == "Doc('This is a test documentation.')"
8+
assert hash(doc) == hash("This is a test documentation.")
9+
assert doc == Doc("This is a test documentation.")
10+
assert doc != Doc("Different documentation.")
11+
assert doc != "Not a Doc instance"

0 commit comments

Comments
 (0)