2015-11-06 23:13:57 +01:00
|
|
|
require_relative 'helper'
|
|
|
|
|
|
|
|
class TestWord < MiniTest::Test
|
|
|
|
include Fragments
|
|
|
|
|
|
|
|
def test_hello
|
|
|
|
@string_input = <<HERE
|
|
|
|
class Object
|
|
|
|
Word self.new()
|
|
|
|
return nil
|
|
|
|
end
|
|
|
|
end
|
|
|
|
class Object
|
|
|
|
int main()
|
|
|
|
Word w = Word.new()
|
|
|
|
end
|
|
|
|
end
|
|
|
|
HERE
|
2015-11-07 21:20:21 +01:00
|
|
|
@length = 34
|
2015-11-06 23:13:57 +01:00
|
|
|
@stdout = ""
|
|
|
|
check
|
|
|
|
end
|
|
|
|
end
|