Skip to content

Commit 97f1524

Browse files
committed
test: add single codepoint to utf8 fixtures
1 parent 9cc2f20 commit 97f1524

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tests/utf8.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ const nonUtf8 = [
2828
// invalid string -> bytes
2929
const orphans = [
3030
{ charcodes: [0x61, 0x62, 0xd8_00, 0x77, 0x78], hex: '6162efbfbd7778' },
31+
{ charcodes: [0xd8_00], hex: 'efbfbd' },
3132
{ charcodes: [0xd8_00, 0xd8_00], hex: 'efbfbdefbfbd' }, // https://npmjs.com/package/buffer is wrong
3233
{ charcodes: [0x61, 0x62, 0xdf_ff, 0x77, 0x78], hex: '6162efbfbd7778' },
3334
{ charcodes: [0xdf_ff, 0xd8_00], hex: 'efbfbdefbfbd' },

0 commit comments

Comments
 (0)