diff options
Diffstat (limited to 'test/unitsToRanges.js')
-rw-r--r-- | test/unitsToRanges.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/unitsToRanges.js b/test/unitsToRanges.js index 0908b1e..ccb583b 100644 --- a/test/unitsToRanges.js +++ b/test/unitsToRanges.js @@ -100,6 +100,12 @@ test('units list to addr:flats', t => { ) t.same( + unitsToRanges(['1', 'G0 1', '2', '3']), + '1-3;G0 1', + 'some units unable to parse as prefix number postfix should still be listed' + ) + + t.same( unitsToRanges('2,15,3,12,1,9,19,1C,1A,6,14,16,5,5-6,A,B,C,4,17-18,7-8'.split(',')), '1-9;12;14-19;1A;1C;A;B;C', 'complex real world data' |