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 | dfee14d34cd8c3c9b7acc27372e06eb5bfcfd5c1 (patch) | |
tree | 734f6504d42ad9026a11b2ef23f303157531c00f /test/test_securerandom.rb | |
parent | 208d2a95f5cceeeec0f619e4700bb6971e41f677 (diff) | |
download | ruby-dfee14d34cd8c3c9b7acc27372e06eb5bfcfd5c1.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
Diffstat (limited to 'test/test_securerandom.rb')
-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 |