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 28b9e92 commit ccf2b19Copy full SHA for ccf2b19
test/test_with_gc.ts
@@ -1,16 +1,17 @@
1
-import python from "@denosaurs/python";
+import python from "../mod.ts";
2
+import { assertEquals } from "./asserts.ts";
3
4
Deno.test("js fns are automaticlly converted to callbacks", () => {
5
const pyModule = python.runModule(
6
`
7
def call_the_callback(cb):
8
result = cb()
- return result
9
+ return result + 1
10
`,
11
"test_module",
12
);
13
- pyModule.call_the_callback(() => 4);
14
+ assertEquals(pyModule.call_the_callback(() => 4).valueOf(), 5);
15
16
// @ts-ignore:requires: --v8-flags=--expose-gc
17
gc(); // if this is comm
0 commit comments