clearer organization for compiler tests
was slightly messy with small/large now needed different test for expression and statements
This commit is contained in:
18
test/compiler/fragments/test_hello.rb
Normal file
18
test/compiler/fragments/test_hello.rb
Normal file
@ -0,0 +1,18 @@
|
||||
require_relative 'helper'
|
||||
|
||||
class TestHello < MiniTest::Test
|
||||
include Fragments
|
||||
|
||||
def test_hello
|
||||
@string_input = <<HERE
|
||||
class Object
|
||||
int main()
|
||||
"Hello Raisa, I am salama".putstring()
|
||||
end
|
||||
end
|
||||
HERE
|
||||
@expect = [[Virtual::MethodEnter,Virtual::Set,Register::GetSlot,Virtual::Set,
|
||||
Virtual::Set,Virtual::MethodCall] ,[Virtual::MethodReturn]]
|
||||
check
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user