aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_securerandom.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_securerandom.rb')
-rw-r--r--test/test_securerandom.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/test_securerandom.rb b/test/test_securerandom.rb
index f2cc7f553b..9b2c8a5e67 100644
--- a/test/test_securerandom.rb
+++ b/test/test_securerandom.rb
@@ -143,6 +143,13 @@ end
assert_match(/\A\h{8}-\h{4}-\h{4}-\h{4}-\h{12}\z/, uuid)
end
+ def test_alphanumeric
+ 65.times do |idx|
+ an = @it.alphanumeric
+ assert_match(/^[0-9a-zA-Z]+$/, an)
+ end
+ end
+
def protect
begin
yield