Skip to content

Commit b95a6ad

Browse files
committed
fix test on guile 3.0.10.
1 parent d03a416 commit b95a6ad

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/bytestructure-class.scm

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@
125125
(define-bytestructure-class <child-class-struct> (<super-class-struct>)
126126
%struct-d wrap-cc unwrap-cc cc?)
127127
(test-assert "wrap" (is-a? (wrap-cc (make <super-class-struct>)) <child-class-struct>))
128-
(test-assert "wrap" (ffi:pointer? (unwrap-cc (wrap-cc (make <super-class-struct>)))))
129-
(test-assert (ffi:pointer? (unwrap-sc (make <child-class-struct>))))
130-
(test-error "wrap" (unwrap-cc (make <super-class-struct>))))
128+
(test-assert "wrap2" (ffi:pointer? (unwrap-cc (wrap-cc (make <super-class-struct>)))))
129+
(test-assert "unwrap-1" (ffi:pointer? (unwrap-sc (make <child-class-struct>))))
130+
(test-error
131+
"unwrap: fail" 'misc-error
132+
(unwrap-cc (make <super-class-struct>))))

0 commit comments

Comments
 (0)