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 034349d commit d397fd8Copy full SHA for d397fd8
tests/pixie/tests/test-ffi.pxi
@@ -49,12 +49,8 @@
49
(t/assert= 1.0 (+ (powf (sinf 0.5) 2.0) (powf (cosf 0.5) 2.0))))
50
51
(t/deftest test-invalid-float-argument
52
- (try
53
- (m/sin "nil")
54
- (catch ex (t/assert= (type ex) RuntimeException)))
55
56
- (m/exp nil)
57
+ (t/assert-throws? (m/sin "nil"))
+ (t/assert-throws? (m/sin nil))
58
)
59
60
(t/deftest test-ffi-callbacks
0 commit comments