diff options
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)) |