forked from feeley/define-library
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.scm
More file actions
25 lines (17 loc) · 686 Bytes
/
test.scm
File metadata and controls
25 lines (17 loc) · 686 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
;; File: test.scm
;; this program should be run with the command
;;
;; gsi -e '(load "define-library")' github.com/feeley/digest/digest test.scm
(define-library (test)
(import (only (gambit)
define quote pp ;; required directly in the body
if not begin) ;; required by expansions of when and unless
(https://github.com/feeley/digest)
(when-unless))
(begin
(define skip-test #f)
(unless skip-test
;; should give "da39a3ee5e6b4b0d3255bfef95601890afd80709"
(pp (digest-string "" 'sha-1 'hex))
;; should give "a9993e364706816aba3e25717850c26c9cd0d89d"
(pp (digest-string "abc" 'sha-1 'hex)))))