positionrange 0.6.5 → 0.6.6
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +1 -1
- data/lib/position_range/list.rb +2 -2
- data/lib/position_range/version.rb +1 -1
- data/test/position_range_list_test.rb +1 -0
- metadata +1 -1
data/CHANGELOG
CHANGED
data/lib/position_range/list.rb
CHANGED
@@ -206,7 +206,7 @@ class PositionRange::List < Array
|
|
206
206
|
# See substract!
|
207
207
|
#
|
208
208
|
def substract(other, options = {})
|
209
|
-
self.dup.substract!(other)
|
209
|
+
self.dup.substract!(other, options)
|
210
210
|
end
|
211
211
|
|
212
212
|
# Deletes the position_range that is specified.
|
@@ -267,7 +267,7 @@ class PositionRange::List < Array
|
|
267
267
|
# See invert!
|
268
268
|
#
|
269
269
|
def invert(maximum_size = PositionRange::MaximumSize)
|
270
|
-
self.dup.invert!
|
270
|
+
self.dup.invert!(maximum_size)
|
271
271
|
end
|
272
272
|
|
273
273
|
# Makes sure that there are no non-overlapping borders between
|
@@ -57,6 +57,7 @@ class PositionRangeListTest < Test::Unit::TestCase
|
|
57
57
|
def test_below
|
58
58
|
assert PositionRange::List.from_s('1,3:5,6').below?(7)
|
59
59
|
assert PositionRange::List.from_s('0,408:500,520').below?(520)
|
60
|
+
assert PositionRange::List.from_s('43,48').below?(559)
|
60
61
|
assert_equal false,
|
61
62
|
PositionRange::List.from_s('0,408:500,520').below?(519)
|
62
63
|
end
|