summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorksss <[email protected]>2017-07-09 18:05:21 +0900
committerksss <[email protected]>2017-07-09 18:05:21 +0900
commitbf48473cf6c48fca74a81ca852734254646b3b57 (patch)
treec0de7bb53501ae2ed22dd975804189c0cf55529f /test
parentc76dc33116c1c43c0e151deceb85b66d33093c1c (diff)
downloadmruby-bf48473cf6c48fca74a81ca852734254646b3b57.tar.gz
mruby-bf48473cf6c48fca74a81ca852734254646b3b57.zip
Should only check frozen for Array#pop
Diffstat (limited to 'test')
-rw-r--r--test/t/array.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/t/array.rb b/test/t/array.rb
index 8df8dedb4..7c11265a4 100644
--- a/test/t/array.rb
+++ b/test/t/array.rb
@@ -237,6 +237,8 @@ assert('Array#pop', '15.2.12.5.21') do
assert_nil([].pop)
assert_equal([1,2], a)
assert_equal(3, b)
+
+ assert_raise(RuntimeError) { [].freeze.pop }
end
assert('Array#push', '15.2.12.5.22') do