File tree 4 files changed +23
-0
lines changed
4 files changed +23
-0
lines changed Original file line number Diff line number Diff line change
1
+ (library (srfi :111) (export box box? unbox set-box!) (import (srfi :111 boxes)))
Original file line number Diff line number Diff line change
1
+ (library (srfi :111 boxes)
2
+ (export box box? unbox set-box!)
3
+ (import (only (chezscheme) box box? unbox set-box!)))
Original file line number Diff line number Diff line change
1
+ ; ; Copyright © 2020 Amirouche Boubekki
2
+ ; ; SPDX-License-Identifier: MIT
3
+ #!r6rs
4
+
5
+ ; ; Tests for SRFI 111
6
+
7
+ (import
8
+ (rnrs)
9
+ (srfi :111 boxes)
10
+ (srfi :64 testing))
11
+
12
+ (test-begin " boxes" )
13
+ (test-equal #t (box? (box 42 )))
14
+ (test-equal 42 (unbox (box 42 )))
15
+ (test-equal 42 (let ((b (box 0 )))
16
+ (set-box! b 42 )
17
+ (unbox b)))
18
+ (test-end " boxes" )
Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ records.sps
43
43
regexp.sps
44
44
tables-test.sps
45
45
vectors.sps
46
+ boxes.sps
46
47
'
47
48
48
49
fails='
You can’t perform that action at this time.
0 commit comments