aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-04-11 08:06:23 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-04-11 08:06:23 +0000
commitba001b41607fe49ce378ca3e651c2ceff2da8076 (patch)
tree1eadc3077a3d40ca58ceabd4c98c1c2d32da40c3
parent015b49228100a4da8294b9355e6c439c90710399 (diff)
downloadruby-ba001b41607fe49ce378ca3e651c2ceff2da8076.tar.gz
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
-rw-r--r--test/ruby/test_whileuntil.rb2
1 files changed, 1 insertions, 1 deletions
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)