From fd6bb9dde3ce4b92f1bf664b3136dcd1c7399f43 Mon Sep 17 00:00:00 2001 From: "Sup#2.0" <102817779+Sup2point0@users.noreply.github.com> Date: Wed, 3 Apr 2024 15:45:07 +0100 Subject: [PATCH] add tests --- tests/quarkify.py | 39 ++++++++++++++++++++++++++++++++++++--- 1 file changed, 36 insertions(+), 3 deletions(-) diff --git a/tests/quarkify.py b/tests/quarkify.py index c3684aa..e7b09ad 100644 --- a/tests/quarkify.py +++ b/tests/quarkify.py @@ -5,7 +5,7 @@ from quarkdown import quarkify -def test_positive(): +def test_live_positive(): result = quarkify.extract_quarks(''' ''') except quarkify.Quarkless: skips = True assert skips + + +def test_dead(): + skips = False + + try: + quarkify.extract_quarks(''' + + + ''') + except quarkify.Quarkless: + skips = True + + assert skips + + +def test_data_single(): + result = quarkify.extract_quarks(''' + + + ''') + + assert result["live"] is True + assert result["path"] == "testing/test" + assert result["style"] == "default" + assert result["duality"] == "light" + assert result["index"] == "tests" + assert result["date"] = 24