fix all tests for previous commit
This commit is contained in:
@ -5,7 +5,7 @@ module VoolBlocks
|
||||
include MomCompile
|
||||
|
||||
def setup
|
||||
Parfait.boot!
|
||||
Parfait.boot!(Parfait.default_test_options)
|
||||
@ins = compile_first_block( "local = 5")
|
||||
end
|
||||
|
||||
@ -32,7 +32,7 @@ module VoolBlocks
|
||||
class TestAssignMomInstanceToLocal < MiniTest::Test
|
||||
include MomCompile
|
||||
def setup
|
||||
Parfait.boot!
|
||||
Parfait.boot!(Parfait.default_test_options)
|
||||
@ins = compile_first_block( "local = @a" , "@a = 5") #second arg in method scope
|
||||
end
|
||||
def test_class_compiles
|
||||
@ -50,7 +50,7 @@ module VoolBlocks
|
||||
include MomCompile
|
||||
|
||||
def setup
|
||||
Parfait.boot!
|
||||
Parfait.boot!(Parfait.default_test_options)
|
||||
@ins = compile_first_block( "arg = 5")
|
||||
end
|
||||
|
||||
@ -68,7 +68,7 @@ module VoolBlocks
|
||||
class TestAssignMomToInstance < MiniTest::Test
|
||||
include MomCompile
|
||||
def setup
|
||||
Parfait.boot!
|
||||
Parfait.boot!(Parfait.default_test_options)
|
||||
end
|
||||
def test_assigns_const
|
||||
@ins = compile_first_block( "@a = 5")
|
||||
|
@ -6,7 +6,7 @@ module VoolBlocks
|
||||
include Mom
|
||||
|
||||
def setup
|
||||
Parfait.boot!
|
||||
Parfait.boot!(Parfait.default_test_options)
|
||||
Risc::Builtin.boot_functions
|
||||
@ins = compile_first_block( "if(5.div4) ; @a = 6 ; else; @a = 5 ; end")
|
||||
end
|
||||
|
@ -6,7 +6,7 @@ module VoolBlocks
|
||||
include Mom
|
||||
|
||||
def setup
|
||||
Parfait.boot!
|
||||
Parfait.boot!(Parfait.default_test_options)
|
||||
@ins = compile_first_block( "while(@a) ; @a = 5 ; end")
|
||||
end
|
||||
|
||||
|
@ -6,7 +6,7 @@ module Vool
|
||||
include MomCompile
|
||||
|
||||
def setup
|
||||
Parfait.boot!
|
||||
Parfait.boot!(Parfait.default_test_options)
|
||||
Risc::Builtin.boot_functions
|
||||
@ins = compile_first_method( send_method )
|
||||
end
|
||||
|
@ -6,7 +6,7 @@ module Vool
|
||||
include Mom
|
||||
|
||||
def setup
|
||||
Parfait.boot!
|
||||
Parfait.boot!(Parfait.default_test_options)
|
||||
Risc.boot!
|
||||
@ins = compile_first_method( "a = main(1 + 2)" )
|
||||
end
|
||||
|
@ -6,7 +6,7 @@ module Vool
|
||||
include Mom
|
||||
|
||||
def setup
|
||||
Parfait.boot!
|
||||
Parfait.boot!(Parfait.default_test_options)
|
||||
@ins = compile_first_method( "a = 5; a.div4")
|
||||
end
|
||||
def test_check_type
|
||||
|
@ -5,7 +5,7 @@ module Vool
|
||||
include MomCompile
|
||||
|
||||
def setup
|
||||
Parfait.boot!
|
||||
Parfait.boot!(Parfait.default_test_options)
|
||||
@ins = compile_first_method( "local = 5")
|
||||
end
|
||||
|
||||
@ -36,7 +36,7 @@ module Vool
|
||||
class TestAssignMomInstanceToLocal < MiniTest::Test
|
||||
include MomCompile
|
||||
def setup
|
||||
Parfait.boot!
|
||||
Parfait.boot!(Parfait.default_test_options)
|
||||
@ins = compile_first_method( "@a = 5 ; local = @a")
|
||||
end
|
||||
def test_class_compiles
|
||||
@ -49,7 +49,7 @@ module Vool
|
||||
include MomCompile
|
||||
|
||||
def setup
|
||||
Parfait.boot!
|
||||
Parfait.boot!(Parfait.default_test_options)
|
||||
@ins = compile_first_method( "arg = 5")
|
||||
end
|
||||
|
||||
@ -73,7 +73,7 @@ module Vool
|
||||
class TestAssignMomToInstance < MiniTest::Test
|
||||
include MomCompile
|
||||
def setup
|
||||
Parfait.boot!
|
||||
Parfait.boot!(Parfait.default_test_options)
|
||||
end
|
||||
def test_assigns_const
|
||||
@ins = compile_first_method( "@a = 5")
|
||||
|
@ -6,7 +6,7 @@ module Vool
|
||||
include Mom
|
||||
|
||||
def setup
|
||||
Parfait.boot!
|
||||
Parfait.boot!(Parfait.default_test_options)
|
||||
Risc::Builtin.boot_functions
|
||||
@ins = compile_first_method( "if(5.div4) ; @a = 6 ; else; @a = 5 ; end")
|
||||
end
|
||||
|
@ -7,7 +7,7 @@ module Vool
|
||||
include Mom
|
||||
|
||||
def setup
|
||||
Parfait.boot!
|
||||
Parfait.boot!(Parfait.default_test_options)
|
||||
@ins = compile_first_method( "if(@a) ; @a = 5 ; end")
|
||||
end
|
||||
|
||||
|
@ -7,7 +7,7 @@ module Vool
|
||||
include Mom
|
||||
|
||||
def setup
|
||||
Parfait.boot!
|
||||
Parfait.boot!(Parfait.default_test_options)
|
||||
@ins = compile_first_method( "if(@a) ; @a = 5 ; else; @a = 6 ; end")
|
||||
end
|
||||
|
||||
|
@ -5,7 +5,7 @@ module Vool
|
||||
include MomCompile
|
||||
|
||||
def setup
|
||||
Parfait.boot!
|
||||
Parfait.boot!(Parfait.default_test_options)
|
||||
@ins = compile_first_method( "@a = 5")
|
||||
end
|
||||
|
||||
|
@ -5,7 +5,7 @@ module Vool
|
||||
include MomCompile
|
||||
|
||||
def setup
|
||||
Parfait.boot!
|
||||
Parfait.boot!(Parfait.default_test_options)
|
||||
@ins = compile_first_method( "a = 5")
|
||||
end
|
||||
|
||||
|
@ -6,7 +6,7 @@ module Vool
|
||||
include Mom
|
||||
|
||||
def setup
|
||||
Parfait.boot!
|
||||
Parfait.boot!(Parfait.default_test_options)
|
||||
@inst = compile_first_method( "return 5")
|
||||
end
|
||||
|
||||
@ -43,7 +43,7 @@ module Vool
|
||||
include Mom
|
||||
|
||||
def setup
|
||||
Parfait.boot!
|
||||
Parfait.boot!(Parfait.default_test_options)
|
||||
Risc.boot!
|
||||
@ins = compile_first_method( "return 5.div4")
|
||||
end
|
||||
|
@ -7,7 +7,7 @@ module Vool
|
||||
include Mom
|
||||
|
||||
def setup
|
||||
Parfait.boot!
|
||||
Parfait.boot!(Parfait.default_test_options)
|
||||
Risc::Builtin.boot_functions
|
||||
@ins = compile_first_method( "while(5.div4) ; 5.div4 ; end")
|
||||
end
|
||||
|
@ -6,7 +6,7 @@ module Vool
|
||||
include Mom
|
||||
|
||||
def setup
|
||||
Parfait.boot!
|
||||
Parfait.boot!(Parfait.default_test_options)
|
||||
@ins = compile_first_method( "while(@a) ; @a = 5 ; end")
|
||||
end
|
||||
|
||||
|
@ -59,7 +59,7 @@ module Vool
|
||||
include YieldBasics
|
||||
|
||||
def setup
|
||||
Parfait.boot!
|
||||
Parfait.boot!(Parfait.default_test_options)
|
||||
@ins = compile_first_method( "return yield(1)" )
|
||||
end
|
||||
|
||||
@ -83,7 +83,7 @@ module Vool
|
||||
include Mom
|
||||
include YieldBasics
|
||||
def setup
|
||||
Parfait.boot!
|
||||
Parfait.boot!(Parfait.default_test_options)
|
||||
@ins = compile_first_method( "return yield" )
|
||||
end
|
||||
def test_array
|
||||
|
Reference in New Issue
Block a user