File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ import Quickjs
18
18
19
19
20
20
eval_1_plus_2 :: Assertion
21
- eval_1_plus_2 = quickjs $ do
21
+ eval_1_plus_2 = quickjsMultithreaded $ do
22
22
v <- eval " 1 + 2;"
23
23
liftIO $ v @?= Number 3
24
24
@@ -52,7 +52,7 @@ instance QC.Arbitrary Value where
52
52
53
53
marshall_to_from_JSValue :: Value -> QC. Property
54
54
marshall_to_from_JSValue val = QC. monadicIO $ do
55
- val' <- QC. run $ quickjs $ withJSValue val $ \ jsval ->
55
+ val' <- QC. run $ quickjsMultithreaded $ withJSValue val $ \ jsval ->
56
56
fromJSValue_ jsval
57
57
QC. assert $ val == val'
58
58
@@ -61,9 +61,9 @@ tests =
61
61
-- adjustOption (\_ -> QuickCheckTests 10) $
62
62
-- adjustOption (\_ -> QuickCheckVerbose True) $
63
63
testGroup " Quickjs"
64
- [ testCase " empty quickjs call" (quickjs $ pure () )
65
- , after AllSucceed " empty quickjs call " $ testCase " eval '1 + 2;'" eval_1_plus_2
66
- , after AllSucceed " eval " $ testProperty " marshalling Value to JSValue and back" marshall_to_from_JSValue
64
+ [ testCase " empty quickjs call" (quickjsMultithreaded $ pure () )
65
+ , testCase " eval '1 + 2;'" eval_1_plus_2
66
+ , testProperty " marshalling Value to JSValue and back" marshall_to_from_JSValue
67
67
]
68
68
69
69
main = defaultMain tests
You can’t perform that action at this time.
0 commit comments