Sha256: bc3bd0b2c84376fc936e6e9f7da3d44517600db96c914959f08f0bf9e62ae232
Contents?: true
Size: 513 Bytes
Versions: 2
Compression:
Stored size: 513 Bytes
Contents
require File.dirname(__FILE__)/'..'/'test_helper' class StarTest < Test::Unit::TestCase def setup @test_words = ['one', 'two', 'three'] @star = Star.new('one', 'two', 'three') end def test_identify_fragment assert_raise(FragmentException) do @test_words.length.times do @star.next end end end def test_identify_not_a_fragment assert_nothing_raised(FragmentException) do (@test_words.length - 1).times do @star.next end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
odin-0.0.4 | test/unit/star_test.rb |
odin-0.1.0.alpha.1 | test/unit/star_test.rb |