Commit 43b93126 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto

Merge pull request #2925 from suzukaze/test-string-freeze

Add String#freeze test
parents 1a45447b 69e835cd
...@@ -542,3 +542,11 @@ assert('String#each_byte') do ...@@ -542,3 +542,11 @@ assert('String#each_byte') do
assert_equal bytes1, bytes2 assert_equal bytes1, bytes2
end end
assert('String#freeze') do
str = "hello"
str.freeze
assert_raise(RuntimeError) { str.upcase! }
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment