diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2023-10-24 18:08:39 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2023-10-24 18:08:39 +0200 |
commit | 2e4e6db22635db6700d1360346d80044e674d155 (patch) | |
tree | 1643eee45dcc16e353c5606c4dba317f376580e0 | |
parent | Propstat stash. (diff) | |
download | calp-2e4e6db22635db6700d1360346d80044e674d155.tar.gz calp-2e4e6db22635db6700d1360346d80044e674d155.tar.xz |
Add tests for (calp) module.
-rw-r--r-- | tests/unit/calp/calp.scm | 13 |
1 files changed, 13 insertions, 0 deletions
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)) |