fix inline issue

This commit is contained in:
2026-02-22 10:31:15 -06:00
parent b0ac5de7e2
commit d88692cd30
4 changed files with 74 additions and 11 deletions

View File

@@ -6928,6 +6928,17 @@ run("reduce counting with predicate", function() {
assert_eq(result, 3, "reduce count evens")
})
run("reduce building array", function() {
var result = reduce([1, 2, 3], function(acc, x) {
acc[] = x * 2
return acc
}, [])
assert_eq(length(result), 3, "reduce array build length")
assert_eq(result[0], 2, "reduce array [0]")
assert_eq(result[1], 4, "reduce array [1]")
assert_eq(result[2], 6, "reduce array [2]")
})
// ============================================================================
// SOME - COMPLETE COVERAGE
// ============================================================================