add parser and basic test framework
that doesnt actually do anything. but WILL, great things, off course
This commit is contained in:
28
test/melon/test_itos.rb
Normal file
28
test/melon/test_itos.rb
Normal file
@@ -0,0 +1,28 @@
|
||||
require_relative 'helper'
|
||||
|
||||
class TestRubyItos < MiniTest::Test
|
||||
include MelonTests
|
||||
|
||||
def test_ruby_itos
|
||||
@string_input = <<HERE
|
||||
100000.to_s
|
||||
HERE
|
||||
@stdout = "Hello there"
|
||||
check
|
||||
end
|
||||
|
||||
def pest_ruby_itos_looping
|
||||
@string_input = <<HERE
|
||||
counter = 100000
|
||||
|
||||
while(counter > 0) do
|
||||
str = counter.to_s
|
||||
counter = counter - 1
|
||||
end
|
||||
str
|
||||
HERE
|
||||
@length = 37
|
||||
@stdout = "Hello Raisa, I am salama"
|
||||
check
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user