import { test, expect } from "bun:test"; import isValidUTF8 from "utf-8-validate"; test("utf-8-validate", () => { expect(isValidUTF8(Buffer.from("😀"))).toBeTrue(); expect(isValidUTF8(Buffer.from([0xff]))).toBeFalse(); }); string_builder.zig?h=dylan/github-api-option' type='application/atom+xml'/>
![]() |
index : bun | |
Unnamed repository; edit this file 'description' to name the repository. |
aboutsummaryrefslogtreecommitdiff |