diff options
author | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-22 09:16:54 +0000 |
---|---|---|
committer | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-22 09:16:54 +0000 |
commit | 58420a65c20e7ca0fe97b20d724b637f0f1c739b (patch) | |
tree | 734f6504d42ad9026a11b2ef23f303157531c00f | |
parent | df97891cddd04185bd01a7f93aa699d715bedb55 (diff) | |
download | ruby-58420a65c20e7ca0fe97b20d724b637f0f1c739b.tar.gz |
Use `\A` and `\z` instead of `^` and `$`
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60358 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | test/test_securerandom.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_securerandom.rb b/test/test_securerandom.rb index 5f08182115..69d24c0417 100644 --- a/test/test_securerandom.rb +++ b/test/test_securerandom.rb @@ -146,7 +146,7 @@ end def test_alphanumeric 65.times do |n| an = @it.alphanumeric(n) - assert_match(/^[0-9a-zA-Z]*$/, an) + assert_match(/\A[0-9a-zA-Z]*\z/, an) assert_equal(n, an.length) end end |