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
# Method aliases / shapes from #619 puzzles 8 / 9 / 10:# Array#at(n) -> Array#[n]# Array#append(x) -> Array#push(x), returning self (the array)# String#chomp! -> String#chomp (matches the changed-case;# the Ruby `nil if no change` mutator semantic# isn't preserved since spinel strings are# immutable)# Pre-fix all three lowered to the unresolved-call fallback "emit 0"# and the comparison surfaces returned false.p([1, 2, 3].at(1) == 2)p(%w[a].append("b") == %w[a b])p("ab\n".chomp! == "ab")test/array_at_append_string_chomp_bang.rb.expecteddeleted
Loading diff…
test/array_eq_int_vs_sym_literal.rbdeleted
Loading diff…
test/array_eq_int_vs_sym_literal.rb.expecteddeleted
Loading diff…
test/array_group_by_poly_each_chain.rbdeleted
Loading diff…
test/array_group_by_poly_each_chain.rb.expecteddeleted
Loading diff…
test/array_index_nil_for_not_found.rbdeleted
Loading diff…
test/array_index_nil_for_not_found.rb.expecteddeleted
Loading diff…
test/array_keyed_hash_int_array_eql.rbdeleted
Loading diff…
test/array_keyed_hash_int_array_eql.rb.expecteddeleted
Loading diff…
test/array_literal_all_nil_first_is_nil.rbdeleted
Loading diff…
test/array_literal_all_nil_first_is_nil.rb.expecteddeleted
Loading diff…
test/array_new_n_fills_nil.rbdeleted
Loading diff…
test/array_new_n_fills_nil.rb.expecteddeleted
Loading diff…
test/array_new_nil_fill.rbdeleted
Loading diff…
test/array_new_nil_fill.rb.expecteddeleted
Loading diff…
test/array_of_hash_aset_sym.rbdeleted
Loading diff…
test/array_of_hash_aset_sym.rb.expecteddeleted
Loading diff…
test/array_partition_gc.rbdeleted
Loading diff…
test/array_partition_gc.rb.expecteddeleted
Loading diff…
test/array_plus_cross_type.rbdeleted
Loading diff…
test/array_push_mixed_types.rbdeleted
Loading diff…
test/array_sum_init.rbdeleted
Loading diff…
test/array_sum_init.rb.expecteddeleted
Loading diff…
test/bundle_array_e.rbaddedView file
Loading diff…
test/bundle_array_e.rb.expectedaddedView file
Loading diff…
test/bundle_array_f.rbaddedView file
Loading diff…
test/bundle_file_a.rbaddedView file
Loading diff…
test/bundle_file_a.rb.expectedaddedView file
Loading diff…
test/bundle_hash_b1.rbaddedView file
Loading diff…
test/bundle_hash_b2.rbaddedView file
Loading diff…
test/bundle_int_a.rbaddedView file
Loading diff…
test/bundle_int_a.rb.expectedaddedView file
Loading diff…
test/bundle_poly_b1.rbaddedView file
Loading diff…
test/bundle_poly_b1.rb.expectedaddedView file
Loading diff…
test/bundle_string_c.rbaddedView file
Loading diff…
test/bundle_string_c.rb.expectedaddedView file
Loading diff…
test/file_binread_directory_error.rbdeleted
Loading diff…
test/file_binread_directory_error.rb.expecteddeleted
Loading diff…
test/file_class_methods_int_recv.rbdeleted
Loading diff…
test/file_class_methods_int_recv.rb.expecteddeleted
Loading diff…
test/file_directory_predicates.rbdeleted
Loading diff…
test/file_directory_predicates.rb.expecteddeleted
Loading diff…
test/file_read_directory_error.rbdeleted
Loading diff…
test/file_read_directory_error.rb.expecteddeleted
Loading diff…
test/file_write_binary_string.rbdeleted
Loading diff…
test/file_write_binary_string.rb.expecteddeleted
Loading diff…
test/file_write_directory_error.rbdeleted
Loading diff…
test/file_write_directory_error.rb.expecteddeleted
Loading diff…
test/hash_dup_str_int_str.rbdeleted
Loading diff…
test/hash_dup_str_int_str.rb.expecteddeleted
Loading diff…
test/hash_each_block_param_types.rbdeleted
Loading diff…
test/hash_each_block_param_types.rb.expecteddeleted
Loading diff…
test/hash_merge_cross_variant.rbdeleted
Loading diff…
test/hash_new_default_value.rbdeleted
Loading diff…
test/hash_new_default_value.rb.expecteddeleted
Loading diff…
test/hash_or_fallback_missing_key.rbdeleted
Loading diff…
test/int_array_literal_lshift_heterogeneous.rbdeleted
Loading diff…
test/int_array_literal_lshift_heterogeneous.rb.expecteddeleted
Loading diff…
test/int_array_replace_expr.rbdeleted
Loading diff…
test/int_array_replace_expr.rb.expecteddeleted
Loading diff…
test/int_eq_nil_strict.rbdeleted
Loading diff…
test/int_eq_nil_strict.rb.expecteddeleted
Loading diff…
test/poly_array_clear_expr.rbdeleted
Loading diff…
test/poly_array_clear_expr.rb.expecteddeleted
Loading diff…
test/poly_array_eq_all_nil_literal.rbdeleted
Loading diff…
test/poly_array_eq_all_nil_literal.rb.expecteddeleted
Loading diff…
test/str_index_range_eq.rbdeleted
Loading diff…
test/str_index_range_eq.rb.expecteddeleted
Loading diff…
test/str_setbyte_dup_mutates.rbdeleted
Loading diff…
test/str_setbyte_dup_mutates.rb.expecteddeleted
Loading diff…
test/string_endless_range.rbdeleted
Loading diff…
test/string_endless_range.rb.expecteddeleted
Loading diff…
test/string_index_from.rbdeleted
Loading diff…
test/string_index_from.rb.expecteddeleted
Loading diff…
test/string_index_nullable.rbdeleted
Loading diff…
test/string_index_nullable.rb.expecteddeleted
Loading diff…
test/string_index_oob_returns_nil.rbdeleted
Loading diff…
test/string_index_oob_returns_nil.rb.expecteddeleted
Loading diff…
test/string_to_i_underscore.rbdeleted
Loading diff…
test/string_to_i_underscore.rb.expecteddeleted
Loading diff…