rubyx/stash/soml/fragments/test_class.rb

25 lines
289 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-11-30 15:20:39 +01:00
class Space
2015-10-25 11:31:35 +01:00
int main()
return 1
end
end
2015-09-27 19:28:34 +02:00
HERE
@length = 15
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