about summary refs log tree commit diff
path: root/test_zachwalk.py
diff options
context:
space:
mode:
authorZach DeCook <zachdecook@librem.one>2021-02-07 22:35:12 -0500
committerZach DeCook <zachdecook@librem.one>2021-02-07 22:35:12 -0500
commit5a0ebe1c44afdd4782d33ba075b22c4ebb0281e2 (patch)
treec3c9b498048d4f7be94ca37431678ab3a8d2af3a /test_zachwalk.py
parent77651ccd131fe7e22c53c284d5fac1d8ea1261a6 (diff)
downloadzachwalk-5a0ebe1c44afdd4782d33ba075b22c4ebb0281e2.tar.gz
test: test that it only parses link lines
Diffstat (limited to 'test_zachwalk.py')
-rwxr-xr-xtest_zachwalk.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test_zachwalk.py b/test_zachwalk.py
index 5ed323e..952ad65 100755
--- a/test_zachwalk.py
+++ b/test_zachwalk.py
@@ -1,8 +1,11 @@
 #!/usr/bin/env python3
 import zachwalk
+from dateutil.parser import parse
 
 def main():
     assert zachwalk.gnd([b'']) == zachwalk.DEFAULT
+    assert zachwalk.gnd([b'2021-01-31']) == zachwalk.DEFAULT
+    assert zachwalk.gnd([b'=> path.gmi 2021-01-31 - my post']) == parse('2021-01-31').date()
 
 if __name__ == '__main__':
     main()