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

Add String#freeze test
This commit is contained in:
Yukihiro "Matz" Matsumoto
2015-08-27 21:55:45 +09:00
+8
View File
@@ -542,3 +542,11 @@ assert('String#each_byte') do
assert_equal bytes1, bytes2
end
assert('String#freeze') do
str = "hello"
str.freeze
assert_raise(RuntimeError) { str.upcase! }
end