diff options
author | Andrew Harvey <andrew@alantgeo.com.au> | 2021-06-30 12:23:18 +1000 |
---|---|---|
committer | Andrew Harvey <andrew@alantgeo.com.au> | 2021-06-30 12:23:18 +1000 |
commit | b9612388e05a3885b5b92a3a0e8ad127c04e8630 (patch) | |
tree | 2bf41efe1ee11cbe395c23603d80b70aa297c47a /test/unitsToRanges.js | |
parent | 23417e2c8ce83c790c0dae5a0a4aac99e4e98b36 (diff) |
include units even when was unable to parse as prefix number postfix
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' |