clearer organization for compiler tests
was slightly messy with small/large now needed different test for expression and statements
This commit is contained in:
19
test/compiler/fragments/test_class.rb
Normal file
19
test/compiler/fragments/test_class.rb
Normal file
@ -0,0 +1,19 @@
|
||||
require_relative 'helper'
|
||||
|
||||
class TestBasicClass < MiniTest::Test
|
||||
include Fragments
|
||||
|
||||
def test_class_basic
|
||||
@string_input = <<HERE
|
||||
class Bar
|
||||
int buh()
|
||||
return 1
|
||||
end
|
||||
end
|
||||
HERE
|
||||
@expect = [ [Virtual::MethodEnter] ,[Virtual::MethodReturn]]
|
||||
check
|
||||
end
|
||||
|
||||
|
||||
end
|
Reference in New Issue
Block a user