From 6da1c69b877fe35fa35d7fc18c405ac389256f53 Mon Sep 17 00:00:00 2001 From: Torsten Ruger Date: Sun, 19 Jul 2015 12:33:33 +0300 Subject: [PATCH] minor --- test/fragments/helper.rb | 1 + test/fragments/test_foo.rb | 2 +- test/fragments/test_functions.rb | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/test/fragments/helper.rb b/test/fragments/helper.rb index de715e8a..7942a8b7 100644 --- a/test/fragments/helper.rb +++ b/test/fragments/helper.rb @@ -9,6 +9,7 @@ module Fragments def check expressions = Virtual.machine.boot.compile_main @string_input @expect.each_with_index do | should , i | + assert expressions[i].is_a?(Virtual::Slot) , "compiles should return slots, not #{should.class}" assert_equal should , expressions[i].class end # Virtual.machine.run_passes diff --git a/test/fragments/test_foo.rb b/test/fragments/test_foo.rb index 7f2f41f2..e3756c26 100644 --- a/test/fragments/test_foo.rb +++ b/test/fragments/test_foo.rb @@ -10,7 +10,7 @@ def foo2(x) end 3.foo( 4 ) HERE - @expect = [Parfait::Method , Virtual::Return ] + @expect = [ Virtual::Return ] check end diff --git a/test/fragments/test_functions.rb b/test/fragments/test_functions.rb index c3e10b3e..66cb9281 100644 --- a/test/fragments/test_functions.rb +++ b/test/fragments/test_functions.rb @@ -6,7 +6,7 @@ class TestFunctions < MiniTest::Test def test_functions @string_input = <