Skip to content

Commit 245e4fe

Browse files
nomadiumenebo
authored andcommittedJan 29, 2018
Remove TestArray#test_uniq_bang_with_freeze exclusion test case
1 parent 07950ec commit 245e4fe

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
 

‎core/src/main/java/org/jruby/RubyArray.java

+3
Original file line numberDiff line numberDiff line change
@@ -3311,6 +3311,9 @@ public IRubyObject uniq_bang19(ThreadContext context, Block block) {
33113311
RubyHash hash = makeHash(context, block);
33123312
if (realLength == hash.size()) return context.runtime.getNil();
33133313

3314+
// after evaluating the block, a new modify check is needed
3315+
modifyCheck();
3316+
33143317
// TODO: (CON) This could be a no-op for packed arrays if size does not change
33153318
unpack();
33163319

‎test/mri/excludes/TestArray.rb

-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,5 @@
1515
exclude :test_sort_bang_with_freeze, ""
1616
exclude :test_sort_with_callcc, "no callcc"
1717
exclude :test_to_h, ""
18-
exclude :test_uniq_bang_with_freeze, ""
1918
exclude :test_values_at2, ""
2019
exclude :test_zip, ""

0 commit comments

Comments
 (0)