2015-12-01 10:55:33 +01:00
|
|
|
require_relative 'helper'
|
|
|
|
|
2017-01-17 23:05:36 +01:00
|
|
|
module Rubyx
|
2017-01-11 18:18:04 +01:00
|
|
|
class TestRubyLoop < MiniTest::Test
|
2017-01-17 23:05:36 +01:00
|
|
|
include RubyxTests
|
2015-12-01 10:55:33 +01:00
|
|
|
|
2017-01-11 18:18:04 +01:00
|
|
|
def pest_ruby_loop
|
|
|
|
@string_input = <<HERE
|
|
|
|
counter = 100000
|
|
|
|
while(counter > 0) do
|
|
|
|
counter -= 1
|
2015-12-01 10:55:33 +01:00
|
|
|
end
|
2017-01-11 18:18:04 +01:00
|
|
|
HERE
|
|
|
|
@stdout = "Hello there"
|
|
|
|
check
|
|
|
|
end
|
2015-12-01 10:55:33 +01:00
|
|
|
|
2017-01-11 18:18:04 +01:00
|
|
|
end
|
2015-12-01 10:55:33 +01:00
|
|
|
end
|