summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/ffi/tests/ffi_types.ts4
-rw-r--r--tests/ffi/tests/integration_tests.rs10
-rw-r--r--tests/ffi/tests/test.js2
3 files changed, 8 insertions, 8 deletions
diff --git a/tests/ffi/tests/ffi_types.ts b/tests/ffi/tests/ffi_types.ts
index 596662873..93ac98d92 100644
--- a/tests/ffi/tests/ffi_types.ts
+++ b/tests/ffi/tests/ffi_types.ts
@@ -160,7 +160,7 @@ let r_1: number | bigint = result;
const result2 = remote.symbols.method17();
// @ts-expect-error: Invalid argument
result2.then((_0: string) => {});
-result2.then((_1: number | bigint) => {});
+result2.then((_1: bigint) => {});
const result3 = remote.symbols.method18();
// @ts-expect-error: Invalid argument
@@ -430,7 +430,7 @@ type __Tests__ = [
symbols: {
foo: (
...args: (number | Deno.PointerValue | null)[]
- ) => number | bigint;
+ ) => bigint;
};
close(): void;
},
diff --git a/tests/ffi/tests/integration_tests.rs b/tests/ffi/tests/integration_tests.rs
index d0ac6e104..2235405a8 100644
--- a/tests/ffi/tests/integration_tests.rs
+++ b/tests/ffi/tests/integration_tests.rs
@@ -76,10 +76,10 @@ fn basic() {
5\n\
5\n\
579\n\
- 8589934590\n\
- -8589934590\n\
- 8589934590\n\
- -8589934590\n\
+ 8589934590n\n\
+ -8589934590n\n\
+ 8589934590n\n\
+ -8589934590n\n\
9007199254740992n\n\
9007199254740992n\n\
-9007199254740992n\n\
@@ -110,7 +110,7 @@ fn basic() {
Before\n\
After\n\
logCallback\n\
- 1 -1 2 -2 3 -3 4 -4 0.5 -0.5 1 2 3 4 5 6 7 8\n\
+ 1 -1 2 -2 3 -3 4n -4n 0.5 -0.5 1 2 3 4 5 6 7 8\n\
u8: 8\n\
buf: [1, 2, 3, 4, 5, 6, 7, 8]\n\
logCallback\n\
diff --git a/tests/ffi/tests/test.js b/tests/ffi/tests/test.js
index 6b8e509c0..fccf6b35e 100644
--- a/tests/ffi/tests/test.js
+++ b/tests/ffi/tests/test.js
@@ -637,7 +637,7 @@ await dylib.symbols.call_fn_ptr_return_u8_thread_safe(returnU8Callback.pointer);
// Test statics
assertEquals(dylib.symbols.static_u32, 42);
-assertEquals(dylib.symbols.static_i64, -1242464576485);
+assertEquals(dylib.symbols.static_i64, -1242464576485n);
assert(
typeof dylib.symbols.static_ptr === "object"
);