1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

call to_i

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45696 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2014-04-24 01:01:18 +00:00
parent ca258c86cf
commit 8c3b01022b
2 changed files with 4 additions and 4 deletions

View file

@ -9,7 +9,7 @@ class TestSleep < Test::Unit::TestCase
bottom =
case RUBY_PLATFORM
when /linux/
4.98 if /Linux ([\d.]+)/ =~ `uname -sr` && ($1.split('.')<=>%w/2 6 18/)<1
4.98 if /Linux ([\d.]+)/ =~ `uname -sr` && ($1.split('.').map(&:to_i)<=>[2,6,18])<1
when /mswin|mingw/
4.98
end