rubyx/test/compiler/fragments/test_class.rb

25 lines
290 B
Ruby
Raw Normal View History

2015-09-27 19:28:34 +02:00
require_relative 'helper'
2015-10-25 11:31:35 +01:00
module Register
2015-09-27 19:28:34 +02:00
class TestBasicClass < MiniTest::Test
include Fragments
2015-10-25 11:31:35 +01:00
def test_class_def
2015-09-27 19:28:34 +02:00
@string_input = <<HERE
class Bar
int buh()
return 1
2015-09-27 19:28:34 +02:00
end
end
2015-10-25 11:31:35 +01:00
class Object
int main()
return 1
end
end
2015-09-27 19:28:34 +02:00
HERE
@length = 17
2015-09-27 19:28:34 +02:00
check
end
2015-10-25 11:31:35 +01:00
end
2015-09-27 19:28:34 +02:00
end