From 2e7c4989fb735e5d147b363621d6783a91fad9e7 Mon Sep 17 00:00:00 2001 From: John Gee Date: Sat, 25 Nov 2023 19:47:32 +1300 Subject: [PATCH] [Tests]: extend string '_' test to include numeric --- test/parse.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/parse.js b/test/parse.js index 65d9d90..25456d8 100644 --- a/test/parse.js +++ b/test/parse.js @@ -93,12 +93,14 @@ test('strings', function (t) { }); test('stringArgs', function (t) { - var s = parse([' ', ' '], { string: '_' })._; - t.same(s.length, 2); + var s = parse([' ', ' ', '3'], { string: '_' })._; + t.same(s.length, 3); t.same(typeof s[0], 'string'); t.same(s[0], ' '); t.same(typeof s[1], 'string'); t.same(s[1], ' '); + t.same(typeof s[2], 'string'); + t.same(s[2], '3'); t.end(); });