Add specs for CodePointRange
This commit is contained in:
1 parent
3987f08cd7
commit
8473df421a
3 files changed
+89
-3
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user