Commit 61e9421d

61e9421debccMerged

Yukihiro "Matz" Matsumoto <[email protected]> · 6 months ago · 81 files · +13 added · -68 deleted

Description

test: bundle first batch of standalone tests for Windows CI speed

Following the existing bundle_* convention (def t_ wrapper + final call + concat expected). Reduces cc invocation count, which dominates Windows CI test time.

New bundles (39 tests folded into 8 bundle files):

  • bundle_string_c (7): str_index_range_eq + str_setbyte_dup_mutates + string_endless_range + string_index_from + string_index_nullable + string_index_oob_returns_nil + string_to_i_underscore
  • bundle_array_e (8): array_at_append_string_chomp_bang + array_eq_int_vs_sym_literal + array_index_nil_for_not_found + array_keyed_hash_int_array_eql + array_literal_all_nil_first_is_nil + array_new_n_fills_nil + array_new_nil_fill + array_sum_init
  • bundle_array_f (5): array_group_by_poly_each_chain + array_of_hash_aset_sym + array_partition_gc + array_plus_cross_type + array_push_mixed_types
  • bundle_file_a (6): file_binread_directory_error + file_class_methods_int_recv + file_directory_predicates + file_read_directory_error + file_write_binary_string + file_write_directory_error
  • bundle_int_a (3): int_array_literal_lshift_heterogeneous + int_array_replace_expr + int_eq_nil_strict
  • bundle_hash_b1 (3): hash_dup_str_int_str + hash_each_block_param_types + hash_merge_cross_variant
  • bundle_hash_b2 (2): hash_new_default_value + hash_or_fallback_missing_key
  • bundle_poly_b1 (2): poly_array_clear_expr + poly_array_eq_all_nil_literal

Verified each bundle PASSes standalone. Full suite: default 622/0/0, optcarrot checksum 59662. Tests that didn't bundle (array_pattern_match_basic, array_of_hash_lit, hash_shorthand_str, poly_hash_with_range, poly_hash_with_time, poly_poly_hash_each_value, int_keyed_hash_lookup_as_array, int_overflow_promote) stay standalone -- they hit shape-specific codegen edge cases when wrapped in def t_ (FrozenError on literal mutation, sp_*_grow alloc-size warning, nested block-param truthy lowering, etc.) that need follow-up.

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

Details

Commit
61e9421debcc
Parent
0064f376f097

test/array_at_append_string_chomp_bang.rbdeleted

1-# Method aliases / shapes from #619 puzzles 8 / 9 / 10:
2-# Array#at(n) -> Array#[n]
3-# Array#append(x) -> Array#push(x), returning self (the array)
4-# String#chomp! -> String#chomp (matches the changed-case;
5-# the Ruby `nil if no change` mutator semantic
6-# isn't preserved since spinel strings are
7-# immutable)
8-# Pre-fix all three lowered to the unresolved-call fallback "emit 0"
9-# and the comparison surfaces returned false.
10-
11-p([1, 2, 3].at(1) == 2)
12-p(%w[a].append("b") == %w[a b])
13-p("ab\n".chomp! == "ab")