From 2e4e6db22635db6700d1360346d80044e674d155 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Tue, 24 Oct 2023 18:08:39 +0200 Subject: Add tests for (calp) module. --- tests/unit/calp/calp.scm | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tests/unit/calp/calp.scm (limited to 'tests/unit') diff --git a/tests/unit/calp/calp.scm b/tests/unit/calp/calp.scm new file mode 100644 index 00000000..c84bbf87 --- /dev/null +++ b/tests/unit/calp/calp.scm @@ -0,0 +1,13 @@ +(define-module (test calp) + :use-module (srfi srfi-64) + :use-module (ice-9 regex) + :use-module (calp)) + +(test-assert "Calp version is a proper version string" + (string-match "^[0-9]+[.][0-9]+([.][0-9]+)?(-.*)?$" + version)) + +(test-assert "Prodid returns a string" + (string? (prodid))) + +'((calp)) -- cgit v1.2.3