diff options
author | Nobuyoshi Nakada <[email protected]> | 2020-12-25 22:23:53 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2020-12-25 22:23:53 +0900 |
commit | 92f9f998fb65c70941ea05ed33a7b9f351f308f7 (patch) | |
tree | e6f136d077028bc944a98f7c74724cc8132ef604 /test | |
parent | 255ee4de8ce8f1db044c04843bef25c78e2c28ac (diff) |
test/test_trick.rb: fixed the position to add timeout
Diffstat (limited to 'test')
-rw-r--r-- | test/test_trick.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_trick.rb b/test/test_trick.rb index abdfbca108..e37bda2efe 100644 --- a/test/test_trick.rb +++ b/test/test_trick.rb @@ -34,7 +34,7 @@ end class TestTRICK2015 < Test::Unit::TestCase def test_kinaba - src = File.join(__dir__, "../sample/trick2015/kinaba/entry.rb", timeout: 60) + src = File.join(__dir__, "../sample/trick2015/kinaba/entry.rb") # calculate the first 10000 digits of Pi n = 10000 @@ -44,7 +44,7 @@ class TestTRICK2015 < Test::Unit::TestCase end pi = "3#{ a - b }" - assert_in_out_err(["-W0", src], "", [pi]) + assert_in_out_err(["-W0", src], "", [pi], timeout: 60) assert_equal(pi[0, 242], Ripper.tokenize(File.read(src)).grep(/\S/).map{|t|t.size%10}.join) end |