it's a start
This commit is contained in:
parent
1368db7d66
commit
b77b1679a4
1 changed files with 13 additions and 0 deletions
13
trunk/ripnews/set/tests/set_test.rb
Executable file
13
trunk/ripnews/set/tests/set_test.rb
Executable file
|
|
@ -0,0 +1,13 @@
|
||||||
|
#!/usr/local/bin/ruby
|
||||||
|
|
||||||
|
require 'set/intspan'
|
||||||
|
|
||||||
|
@set = Set::IntSpan.new("895738,895742,895747,895760-895761,895763-895765,895775-895776,895783,895786")
|
||||||
|
@set.finite
|
||||||
|
@set.insert(895739)
|
||||||
|
@set.insert(895740)
|
||||||
|
@set.insert(895741)
|
||||||
|
@set2 = Set::IntSpan.new("895759-900000")
|
||||||
|
@set3 = @set2.diff(@set)
|
||||||
|
print @set3.run_list
|
||||||
|
print "\n"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue