brainstorming mode on the new way (tm)
This commit is contained in:
@ -28,7 +28,7 @@ class TestBasic < MiniTest::Test
|
||||
|
||||
def test_name
|
||||
@string_input = 'foo '
|
||||
@output = [nil]
|
||||
@output = [Virtual::FrameSend.new(:foo)]
|
||||
check
|
||||
end
|
||||
|
||||
|
@ -12,7 +12,7 @@ module VirtualHelper
|
||||
syntax = parser.parse_with_debug(@string_input)
|
||||
parts = Parser::Transform.new.apply(syntax)
|
||||
machine = Virtual::Machine.new
|
||||
expressions = parts.compile(machine.frame , machine.anonymous)
|
||||
expressions = parts.compile(machine.frame , Virtual::Method.main )
|
||||
assert_equal @output , expressions
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user