We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e99f529 commit a5a79beCopy full SHA for a5a79be
tests/test_main.py
@@ -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