found bug and more tests

This commit is contained in:
Torsten Ruger
2015-05-21 21:50:39 +03:00
parent 531d3e181a
commit b4eb14e639
2 changed files with 18 additions and 1 deletions

View File

@ -49,4 +49,14 @@ class TestList < MiniTest::Test
assert_equal v , @list.get(k)
end
end
def test_index_of
test_many_get
assert_equal 2 , @list.index_of( :two )
assert_equal nil , @list.index_of( :four )
end
def test_incude
test_many_get
assert_equal true , @list.include?( :two )
assert_equal false , @list.include?( :four )
end
end