We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d03a416 commit b95a6adCopy full SHA for b95a6ad
tests/bytestructure-class.scm
@@ -125,6 +125,8 @@
125
(define-bytestructure-class <child-class-struct> (<super-class-struct>)
126
%struct-d wrap-cc unwrap-cc cc?)
127
(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>))))
+ (test-assert "wrap2" (ffi:pointer? (unwrap-cc (wrap-cc (make <super-class-struct>)))))
+ (test-assert "unwrap-1" (ffi:pointer? (unwrap-sc (make <child-class-struct>))))
+ (test-error
131
+ "unwrap: fail" 'misc-error
132
+ (unwrap-cc (make <super-class-struct>))))
0 commit comments