Add String#freeze test

This commit is contained in:
Jun Hiroe
2015-08-27 21:44:56 +09:00
parent 1a45447b8b
commit 69e835cd0f
+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