This commit is contained in:
Torsten Ruger
2015-07-02 13:49:33 +03:00
parent 69781fb505
commit 4f2f56fff8
3 changed files with 15 additions and 14 deletions

View File

@ -12,13 +12,14 @@ class TestSpace < MiniTest::Test
def test_machine_space
assert_equal Parfait::Space , @machine.space.class
end
def test_gloabl_space
def test_global_space
assert_equal Parfait::Space , Parfait::Space.object_space.class
end
def test_classes
assert_equal 16 , @machine.space.classes.length
[:Kernel,:Word,:List,:Message,:Frame,:Layout,:Class,:Dictionary,:Method].each do |name|
assert @machine.space.classes[name]
assert_equal Parfait::Class , @machine.space.classes[name].class
assert_equal Parfait::Layout , @machine.space.classes[name].get_layout.class
end
end
def test_messages

View File

@ -33,7 +33,7 @@ HERE
def test_string_put
@string_input = <<HERE
"Hello".putstring()
"Hello again\n".putstring()
HERE
check
end