From 4f3d117e4074c7cb5533ef9542b4b155e26a209c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torsten=20R=C3=BCger?= Date: Sun, 18 Aug 2019 20:41:49 +0300 Subject: [PATCH] Object dogfood, compiling parfiat to binary Object is the first (obviously) Parfait object to parse and fully compile to binary. No tests yet, but almost 500 lines of real world code with 17 methods, not bad --- test/rubyx/parfait/test_object.rb | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/test/rubyx/parfait/test_object.rb b/test/rubyx/parfait/test_object.rb index e4625620..0f787754 100644 --- a/test/rubyx/parfait/test_object.rb +++ b/test/rubyx/parfait/test_object.rb @@ -17,8 +17,16 @@ module RubyX assert_equal :Object , vool.name end def test_mom - vool = compiler.ruby_to_mom source - assert_equal Mom::MomCollection , vool.class + mom = compiler.ruby_to_mom source + assert_equal Mom::MomCollection , mom.class + end + def test_risc + risc = compiler.ruby_to_risc source + assert_equal Risc::RiscCollection , risc.class + end + def test_binary + risc = compiler.ruby_to_binary source , :interpreter + assert_equal Risc::Linker , risc.class end end end