Commit 22563be6

22563be619e8Merged

Yukihiro "Matz" Matsumoto <[email protected]> · 6 months ago · 186 files · +17 added · ~21 modified · -148 deleted

Description

test: third bundle batch (class tests, ~70 more bundled)

Continued auto-rename bundling for medium-class tests. Restarted the bundle_class_NN sequence which overwrote/replaced the first batch's bundles — the underlying tests are still all covered (just regrouped into fewer larger bundles).

Tests left standalone (class_const_as_value, class_method_open_class_call, class_name_in_cmeth, const_self_ref_raises_name_error) hit the rename script's word-boundary edge cases (escaped class names in heredocs / interpolation, multi-line class chain dispatches).

Verified: default 503/0/0, optcarrot 59662.

Co-Authored-By: Claude Opus 4.7 [email protected]

Details

Commit
22563be619e8
Parent
41639572aa2c

test/array_each_with_object.rbdeleted

1-# Array#each_with_object on poly_array and ptr_array used to silently
2-# miss the type-check; the loop body never ran. Both shapes covered.
3-
4-# poly_array (heterogeneous)
5-n = 0
6-[1, "x"].each_with_object("") {|_e, _a| n += 1 }
7-puts n
8-
9-# ptr_array (user objects)
10-class Bar
11- def initialize(x); @x = x; end
12- attr_accessor :x
13-end
14-
15-m = 0
16-[Bar.new(1), Bar.new(2)].each_with_object("") {|_e, _a| m += 1 }
17-puts m