add a run_list test, rename instert to insert!
This commit is contained in:
parent
ec53fdf477
commit
8552aa83e4
2 changed files with 29 additions and 14 deletions
|
|
@ -4,9 +4,9 @@ require 'set/intspan'
|
||||||
|
|
||||||
@set = Set::IntSpan.new("895738,895742,895747,895760-895761,895763-895765,895775-895776,895783,895786")
|
@set = Set::IntSpan.new("895738,895742,895747,895760-895761,895763-895765,895775-895776,895783,895786")
|
||||||
@set.finite
|
@set.finite
|
||||||
@set.insert(895739)
|
@set.insert!(895739)
|
||||||
@set.insert(895740)
|
@set.insert!(895740)
|
||||||
@set.insert(895741)
|
@set.insert!(895741)
|
||||||
@set2 = Set::IntSpan.new("895759-900000")
|
@set2 = Set::IntSpan.new("895759-900000")
|
||||||
@set3 = @set2.diff(@set)
|
@set3 = @set2.diff(@set)
|
||||||
print @set3.run_list
|
print @set3.run_list
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue