summaryrefslogtreecommitdiff
path: root/test/ruby/test_random_formatter.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_random_formatter.rb')
-rw-r--r--test/ruby/test_random_formatter.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/ruby/test_random_formatter.rb b/test/ruby/test_random_formatter.rb
index f927522d96..784fbfc2b8 100644
--- a/test/ruby/test_random_formatter.rb
+++ b/test/ruby/test_random_formatter.rb
@@ -165,6 +165,11 @@ module Random::Formatter
def setup
@it = Random
end
+
+ def test_alphanumeric_frozen
+ assert_predicate @it::Formatter::ALPHANUMERIC, :frozen?
+ assert @it::Formatter::ALPHANUMERIC.all?(&:frozen?)
+ end
end
class TestInstanceMethods < Test::Unit::TestCase