fix all tests to use space.main

This commit is contained in:
Torsten Ruger
2015-11-30 16:20:39 +02:00
parent afe16868b5
commit c7d1f9ec99
22 changed files with 53 additions and 58 deletions

View File

@ -5,7 +5,7 @@ class AddTest < MiniTest::Test
def setup
@string_input = <<HERE
class Object
class Space
int main()
return 5 + 7
end

View File

@ -5,7 +5,7 @@ class IfTest < MiniTest::Test
def setup
@string_input = <<HERE
class Object
class Space
int itest(int n)
if_zero( n - 12)
"then".putstring()

View File

@ -6,7 +6,7 @@ class MultTest < MiniTest::Test
def setup
@string_input = <<HERE
class Object
class Space
int main()
return #{2**31} * #{2**31}
end

View File

@ -5,7 +5,7 @@ class PlusTest < MiniTest::Test
def setup
@string_input = <<HERE
class Object
class Space
int main()
return #{2**62 - 1} + 1
end

View File

@ -5,7 +5,7 @@ class TestPuts < MiniTest::Test
def setup
@string_input = <<HERE
class Object
class Space
int main()
"Hello again".putstring()
end