From c0071c947d0fe607c16ffc8adcbcc21280ad0595 Mon Sep 17 00:00:00 2001 From: Torsten Ruger Date: Thu, 6 Aug 2015 18:26:59 +0300 Subject: [PATCH] bit more testing --- test/parfait/test_space.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/parfait/test_space.rb b/test/parfait/test_space.rb index 55604415..5dcac7a1 100644 --- a/test/parfait/test_space.rb +++ b/test/parfait/test_space.rb @@ -6,7 +6,7 @@ class TestSpace < MiniTest::Test @machine = Virtual.machine.boot end def classes - [:Kernel,:Word,:List,:Message,:Frame,:Layout,:Class,:Dictionary,:Method] + [:Kernel,:Word,:List,:Message,:Frame,:Layout,:Class,:Dictionary,:Method , :Integer] end def test_booted assert_equal true , @machine.booted @@ -17,6 +17,11 @@ class TestSpace < MiniTest::Test def test_global_space assert_equal Parfait::Space , Parfait::Space.object_space.class end + def test_intger + int = Parfait::Space.object_space.get_class_by_name :Integer + assert_equal 3, int.method_names.get_length + assert int.get_instance_method( :plus ) + end def test_classes_class classes.each do |name| assert_equal :Class , @machine.space.classes[name].get_class.name