improve tests

This commit is contained in:
Torsten Ruger
2015-09-27 20:28:34 +03:00
parent 6e009cc6df
commit 259b0afa96
8 changed files with 83 additions and 83 deletions

View File

@ -5,6 +5,16 @@ class TestList < MiniTest::Test
def setup
@list = ::Parfait::List.new
end
def test_list_inspect
@list.set(1,1)
assert_equal "1" , @list.inspect
end
def test_list_equal
@list.set(1,1)
list = ::Parfait::List.new
list.set(1,1)
assert @list.equal? list
end
def test_list_create
assert @list.empty?
end