2014-09-26 07:42:09 +00:00
|
|
|
|
|
|
|
require_relative 'spec_helper'
|
|
|
|
|
|
|
|
require 'timecost/range_list'
|
|
|
|
|
|
|
|
describe TimeCost::RangeList do
|
|
|
|
let(:list) { TimeCost::RangeList.new }
|
|
|
|
|
|
|
|
describe '.new' do
|
|
|
|
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
|