diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-04-11 08:06:23 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-04-11 08:06:23 +0000 |
commit | a2cba4c9c8abc53d50d6de329238c1d4df5b4e20 (patch) | |
tree | 1eadc3077a3d40ca58ceabd4c98c1c2d32da40c3 /test/ruby | |
parent | 826436e95540c6b89bf2a437a43c287b5d938a6f (diff) | |
download | ruby-a2cba4c9c8abc53d50d6de329238c1d4df5b4e20.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
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_whileuntil.rb | 2 |
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) |