summaryrefslogtreecommitdiff
path: root/test_napi/typedarray_test.js
blob: 3cd084dc8724826c768122ab0e343dc7129e977e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// Copyright 2018-2023 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]),
  );
});