Add specs for CodePointRange

This commit is contained in:
josh committed 2021-05-23 20:41:40 -04:00
1 parent 3987f08cd7
commit 8473df421a
3 files changed
+89 -3

No files matched your search

+2
View File
@@ -50,6 +50,8 @@ module Imbecile
if code_point_range.first > (last_cp + 1)
new_ranges << CodePointRange.new(last_cp + 1, code_point_range.first - 1)
last_cp = code_point_range.last
else
last_cp = [last_cp, code_point_range.last].max
end
end
if last_cp < MAX_CODE_POINT