1 require File.dirname(__FILE__) + '/helper'
3 class TestTimeline < Test::Unit::TestCase
5 @timeline = Timeline.new(5)
8 def test_new_should_be_empty
9 assert_equal 0, @timeline.size
12 def test_should_not_grow_to_more_than_size
17 assert_equal [6, 7, 8, 9, 10], @timeline
20 def test_clear_should_clear_array
22 assert_equal [], @timeline.clear
30 # t = Timeline.new(10)
32 # Benchmark.bmbm do |x|
33 # x.report("go") { count.times { t.push(5) } }