2014-09-26 07:42:09 +00:00
|
|
|
|
2023-07-11 16:52:48 +00:00
|
|
|
require "./spec_helper"
|
2014-09-26 07:42:09 +00:00
|
|
|
|
2023-07-11 16:52:48 +00:00
|
|
|
require "../src/timecost/range_list"
|
2014-09-26 07:42:09 +00:00
|
|
|
|
|
|
|
describe TimeCost::RangeList do
|
2023-07-11 16:52:48 +00:00
|
|
|
list= TimeCost::RangeList.new
|
2014-09-26 07:42:09 +00:00
|
|
|
|
2023-07-11 16:52:48 +00:00
|
|
|
describe ".new" do
|
2014-09-26 07:42:09 +00:00
|
|
|
it "can be created without arguments" do
|
|
|
|
assert_instance_of TimeCost::RangeList, list
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
it "is empty at start" do
|
|
|
|
end
|
|
|
|
|
|
|
|
it "can insert ranges" do
|
|
|
|
end
|
|
|
|
|
|
|
|
it "can merge overlapping ranges" do
|
|
|
|
end
|
|
|
|
|
|
|
|
it "cumulates non-overlapping ranges" do
|
|
|
|
end
|
|
|
|
end
|