From dcc41148727ec5f68fbeb0504a295981728327a1 Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Sat, 19 Aug 2023 12:27:34 +0200 Subject: Adding test infrastructure and reorganizing modules --- test/runner.scm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/runner.scm b/test/runner.scm index 0123d9a..45f2b0c 100644 --- a/test/runner.scm +++ b/test/runner.scm @@ -10,7 +10,13 @@ (test-begin "runner") -(test-assert "Make sure species-meta contains a link to tomato" +(test-assert "species-meta is expected contain a link to tomato" (assoc "tomato" (cdr (assoc "links" (get-species-meta))))) +(test-assert "tomato-meta should have a document link" + (assoc "doc" (get-expanded-taxon-meta "tomato"))) + +(test-equal "tomato-data should have a description" + (assoc-ref (get-expanded-taxon-data "tomato") "description") "type of plant species with edible, often red, berry fruit") + (test-end "runner") -- cgit v1.2.3