diff options
Diffstat (limited to 'test_napi/typedarray_test.js')
-rw-r--r-- | test_napi/typedarray_test.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test_napi/typedarray_test.js b/test_napi/typedarray_test.js new file mode 100644 index 000000000..a3c7322f7 --- /dev/null +++ b/test_napi/typedarray_test.js @@ -0,0 +1,12 @@ +// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license. + +import { assertEquals, loadTestLibrary } from "./common.js"; + +const typedarray = loadTestLibrary(); + +Deno.test("napi typedarray external", function () { + assertEquals( + new Uint8Array(typedarray.test_external()), + new Uint8Array([0, 1, 2, 3]), + ); +}); |