Debian Codegraph @

test/multibyte.scm

raw
1 ;; Encode-specific character/string tests
2 (add-load-path "../test")
3
4 (use gauche.test)
5
6 ;; char-set-copy to ensure we test mutable one.
7 (define (test-char-set-1 name expected op arg1)
8 (test* #"char-set ~name" (make-list 2 expected)
9 (let1 a (char-set-copy arg1)
10 (list (op a)
11 (op (char-set-freeze a))))))
12
13 (define (test-char-set-2 name expected op arg1 arg2)
14 (test* #"char-set ~name" (make-list 4 expected)
15 (let* ([a (char-set-copy arg1)]
16 [b (char-set-copy arg2)]
17 [A (char-set-freeze a)]
18 [B (char-set-freeze b)])
19 (list (op a b)
20 (op A b)
21 (op a B)
22 (op A B)))))
23
24 (include "utf-8")