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.
encode_id
1 parent 7e87161 commit 70d1411Copy full SHA for 70d1411
tests/test_paperqa.py
@@ -76,6 +76,14 @@ async def fixture_docs_fixture(stub_data_dir: Path) -> Docs:
76
return docs
77
78
79
+def test_encode_id() -> None:
80
+ assert (
81
+ encode_id("10.1056/nejmoa2119451")
82
+ == encode_id("10.1056/NEJMOA2119451")
83
+ == "945f1f30b11bcae6"
84
+ )
85
+
86
87
def test_single_author() -> None:
88
text = "This was first proposed by (Smith 1999)."
89
assert strip_citations(text) == "This was first proposed by ."
0 commit comments