std/cbor/decode_cbor_sequence_test.ts

12 lines
352 B
TypeScript

// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
import { assertEquals } from "@std/assert";
import { decodeCborSequence } from "./decode_cbor_sequence.ts";
Deno.test("decodeCborSequence() correctly decoding", () => {
assertEquals(
decodeCborSequence(Uint8Array.from([0b000_00000, 0b000_00000])),
[0, 0],
);
});