use include so we can test with is_a

using the well documented included/extend trick
This commit is contained in:
Torsten Ruger
2015-10-25 19:16:12 +02:00
parent 3318b5026c
commit 60098257e9
6 changed files with 171 additions and 143 deletions

View File

@ -6,6 +6,10 @@ class TestList < MiniTest::Test
Register.machine.boot unless Register.machine.booted
@list = ::Parfait::List.new
end
def test_isa
assert @list.is_a? Parfait::List
assert @list.is_a? Parfait::Indexed
end
def test_old_layout
assert_equal Parfait::Layout , Register.machine.space.classes.keys.get_layout.class
end