blob: a3c7322f75ce1d24a2a44d991680d9bc42d8b7e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
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]),
);
});
|