Skip to content

Commit 22701cc

Browse files
committed
Unicode test name
1 parent cf45eb8 commit 22701cc

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

.vscode/launch.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,10 @@
88
"name": "Debug Active Spec",
99
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/ava",
1010
"runtimeArgs": ["debug", "--break", "--serial", "${file}"],
11-
"port": 9229,
1211
"outputCapture": "std",
1312
"skipFiles": ["<node_internals>/**/*.js"],
14-
"preLaunchTask": "npm: build"
15-
// "smartStep": true
13+
"preLaunchTask": "npm: build",
14+
"smartStep": true
1615
},
1716
{
1817
// Use this one if you're already running `yarn watch`
@@ -21,9 +20,8 @@
2120
"name": "Debug Active Spec (no build)",
2221
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/ava",
2322
"runtimeArgs": ["debug", "--break", "--serial", "${file}"],
24-
"port": 9229,
2523
"outputCapture": "std",
26-
"skipFiles": ["<node_internals>/**/*.js"]
27-
// "smartStep": true
24+
"skipFiles": ["<node_internals>/**/*.js"],
25+
"smartStep": true
2826
}]
2927
}

src/lib/puid.spec.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -185,15 +185,15 @@ test('dîngøsky chars (count power of 2 with carry)', (t) => {
185185
})
186186

187187
test('dîngøsky:₩ chars', (t) => {
188-
const dingoskyDogBytes = fixedBytes([
188+
const unicodeBytes = fixedBytes([
189189
0xec, 0xf9, 0xdb, 0x7a, 0x33, 0x3d, 0x21, 0x97, 0xa0, 0xc2, 0xbf, 0x92, 0x80, 0xdd, 0x2f, 0x57, 0x12, 0xc1, 0x1a,
190190
0xef
191191
])
192-
const dingoskyDogId = puidGenerator({ bits: 24, chars: 'dîngøsky:₩', entropyBytes: dingoskyDogBytes })
192+
const unicodeId = puidGenerator({ bits: 24, chars: 'dîngøsky:₩', entropyBytes: unicodeBytes })
193193

194-
t.is(dingoskyDogId(), '₩gî₩₩nî₩')
195-
t.is(dingoskyDogId(), 'ydkîsnsd')
196-
t.is(dingoskyDogId(), 'îøsîndøk')
194+
t.is(unicodeId(), '₩gî₩₩nî₩')
195+
t.is(unicodeId(), 'ydkîsnsd')
196+
t.is(unicodeId(), 'îøsîndøk')
197197
})
198198

199199
test('Safe32 (count non-power of 2 with carry)', (t) => {

0 commit comments

Comments
 (0)