blob: c52959ab5a8aae9f760088389ed2ef246e675cf9 (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
(use-modules
(webid-oidc testing)
(webid-oidc errors)
((webid-oidc stubs) #:prefix stubs:)
(rnrs bytevectors))
(with-test-environment
"hash-unsupported"
(lambda ()
(with-exception-handler
(lambda (error)
(unless ((record-predicate &unsupported-alg) error)
(exit 1))
(let ((value ((record-accessor &unsupported-alg 'value) error)))
(unless (eq? value 'SHA-1024)
(exit 2))))
(lambda ()
(stubs:hash 'SHA-1024 "hello :)")
(exit 3))
#:unwind? #t
#:unwind-for-type &unsupported-alg)))
|