Skip to content

Commit 661edfd

Browse files
add whitespace test case
1 parent a67a3b4 commit 661edfd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/node/long.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,8 @@ describe('Long', function () {
201201
['over max signed hex input', Long.MAX_VALUE.toString(16) + '1', false, 16],
202202
['under min signed binary input', Long.MIN_VALUE.toString(2) + '1', false, 2],
203203
['under min signed decimal input', Long.MIN_VALUE.toString(10) + '1', false, 10],
204-
['under min signed hex input', Long.MIN_VALUE.toString(16) + '1', false, 16]
204+
['under min signed hex input', Long.MIN_VALUE.toString(16) + '1', false, 16],
205+
['string with whitespace', ' 3503a ', false, 11]
205206
];
206207

207208
for (const [testName, str, unsigned, radix, expectedStr] of successInputs) {

0 commit comments

Comments
 (0)