diff options
| author | Jun Hiroe <[email protected]> | 2015-08-27 21:44:56 +0900 |
|---|---|---|
| committer | Jun Hiroe <[email protected]> | 2015-08-27 21:44:56 +0900 |
| commit | 69e835cd0f1ab24da191e8c09e23288bf64a2fcf (patch) | |
| tree | 20bd654bcf924e1e4cebfd651111ab57cc5881de /test/t | |
| parent | 1a45447b8b66159a4a7d0348c4a01a175b3778fd (diff) | |
| download | mruby-69e835cd0f1ab24da191e8c09e23288bf64a2fcf.tar.gz mruby-69e835cd0f1ab24da191e8c09e23288bf64a2fcf.zip | |
Add String#freeze test
Diffstat (limited to 'test/t')
| -rw-r--r-- | test/t/string.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/t/string.rb b/test/t/string.rb index ee6fe0848..7326adce9 100644 --- a/test/t/string.rb +++ b/test/t/string.rb @@ -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 + |
