diff options
author | Aapo Alasuutari <aapo.alasuutari@gmail.com> | 2022-07-24 13:41:11 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-24 16:11:11 +0530 |
commit | f8fee6cd21cce82d6c34e539d39da86df7b036f7 (patch) | |
tree | 8099527951e4b532934a00c25797758aeb496ab6 /test_ffi/tests/integration_tests.rs | |
parent | e1cbd2364f536a1cef817961967e1738b89be734 (diff) |
feat(ext/ffi): Safe number pointers (#15173)
Diffstat (limited to 'test_ffi/tests/integration_tests.rs')
-rw-r--r-- | test_ffi/tests/integration_tests.rs | 34 |
1 files changed, 23 insertions, 11 deletions
diff --git a/test_ffi/tests/integration_tests.rs b/test_ffi/tests/integration_tests.rs index 4a910a836..079293550 100644 --- a/test_ffi/tests/integration_tests.rs +++ b/test_ffi/tests/integration_tests.rs @@ -66,17 +66,29 @@ fn basic() { 5\n\ 5\n\ 579\n\ - 8589934590n\n\ - -8589934590n\n\ - 8589934590n\n\ - -8589934590n\n\ + 8589934590\n\ + -8589934590\n\ + 8589934590\n\ + -8589934590\n\ + 9007199254740992n\n\ + 9007199254740992n\n\ + -9007199254740992n\n\ + 9007199254740992n\n\ + 9007199254740992n\n\ + -9007199254740992n\n\ 579.9119873046875\n\ 579.912\n\ 579\n\ - 8589934590n\n\ - -8589934590n\n\ - 8589934590n\n\ - -8589934590n\n\ + 8589934590\n\ + -8589934590\n\ + 8589934590\n\ + -8589934590\n\ + 9007199254740992n\n\ + 9007199254740992n\n\ + -9007199254740992n\n\ + 9007199254740992n\n\ + 9007199254740992n\n\ + -9007199254740992n\n\ 579.9119873046875\n\ 579.912\n\ After sleep_blocking\n\ @@ -86,7 +98,7 @@ fn basic() { After\n\ true\n\ logCallback\n\ - 1 -1 2 -2 3 -3 4n -4n 0.5 -0.5 1 2 3 4 5 6 7 8\n\ + 1 -1 2 -2 3 -3 4 -4 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\ @@ -98,7 +110,7 @@ fn basic() { Thread safe call counter: 1\n\ u8: 8\n\ Static u32: 42\n\ - Static i64: -1242464576485n\n\ + Static i64: -1242464576485\n\ Static ptr: true\n\ Static ptr value: 42\n\ arrayBuffer.byteLength: 4\n\ @@ -116,7 +128,7 @@ fn symbol_types() { build(); let output = deno_cmd() - .arg("cache") + .arg("check") .arg("--unstable") .arg("--quiet") .arg("tests/ffi_types.ts") |