2017-01-11 18:18:04 +01:00
|
|
|
require_relative 'helper'
|
|
|
|
|
2017-01-17 23:05:36 +01:00
|
|
|
module Rubyx
|
2017-01-11 18:18:04 +01:00
|
|
|
class TestManyHello < MiniTest::Test
|
2017-01-17 23:05:36 +01:00
|
|
|
include RubyxTests
|
2017-01-11 18:18:04 +01:00
|
|
|
|
|
|
|
def pest_ruby_hello_looping
|
|
|
|
@string_input = <<HERE
|
|
|
|
counter = 100000;
|
|
|
|
while(counter > 0) do
|
|
|
|
puts "Hello there"
|
|
|
|
STDOUT.flush
|
|
|
|
counter = counter - 1
|
|
|
|
end
|
|
|
|
HERE
|
|
|
|
@length = 37
|
|
|
|
@stdout = "Hello there"
|
|
|
|
check
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|