diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-04-12 13:30:32 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-04-21 21:16:45 +0200 |
commit | ed4281ff072443167c43207c039570126061d23b (patch) | |
tree | 3c5c0c73a43935d19cc12bd39036b08b7dd4230b /tests/test/uuid.scm | |
parent | Allow tests in subdirs. (diff) | |
download | calp-ed4281ff072443167c43207c039570126061d23b.tar.gz calp-ed4281ff072443167c43207c039570126061d23b.tar.xz |
Add a lot of new unit tests.
Diffstat (limited to 'tests/test/uuid.scm')
-rw-r--r-- | tests/test/uuid.scm | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/test/uuid.scm b/tests/test/uuid.scm new file mode 100644 index 00000000..6a2bd92a --- /dev/null +++ b/tests/test/uuid.scm @@ -0,0 +1,12 @@ +(define-module (test uuid) + :use-module (srfi srfi-64) + :use-module (srfi srfi-64 test-error) + :use-module (srfi srfi-88) + :use-module (hnh util uuid)) + +(set! (@@ (hnh util uuid) %seed) + (seed->random-state 0)) + +(test-equal "UUIDv4 fixed seed" + "d19c9347-9a85-4432-a876-5fb9c0d24d2b" + (uuid-v4)) |