aboutsummaryrefslogtreecommitdiff
path: root/test/unitsToRanges.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/unitsToRanges.js')
-rw-r--r--test/unitsToRanges.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/unitsToRanges.js b/test/unitsToRanges.js
index 2702b4a..7183ad1 100644
--- a/test/unitsToRanges.js
+++ b/test/unitsToRanges.js
@@ -87,5 +87,17 @@ test('units list to addr:flats', t => {
'different prefix not merged'
)
+ t.same(
+ unitsToRanges(['1', '1']),
+ '1',
+ 'source duplicates removed'
+ )
+
+ t.same(
+ unitsToRanges(['1', '1-2']),
+ '1-2',
+ 'source duplicates removed with range'
+ )
+
t.end()
})