From ba001b41607fe49ce378ca3e651c2ceff2da8076 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 11 Apr 2016 08:06:23 +0000 Subject: [PATCH] test_whileuntil.rb: fix old behavior * test/ruby/test_whileuntil.rb (test_while): fix old behavior. mere numeric literal in condition no longer matches $. global variable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54539 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_whileuntil.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/ruby/test_whileuntil.rb b/test/ruby/test_whileuntil.rb index 394383a799..121c44817d 100644 --- a/test/ruby/test_whileuntil.rb +++ b/test/ruby/test_whileuntil.rb @@ -61,7 +61,7 @@ class TestWhileuntil < Test::Unit::TestCase tmp = open(tmpfilename, "r") while line = tmp.gets() - break if 3 + break if $. == 3 assert_no_match(/vt100/, line) assert_no_match(/Amiga/, line) assert_no_match(/paper/, line)