10 Commits

Author SHA1 Message Date
John Alanbrook
45ce76aef7 fixes 2026-02-07 12:50:46 -06:00
John Alanbrook
3621b1ef33 Merge branch 'mach' into mcode2 2026-02-07 11:53:44 -06:00
John Alanbrook
836227c8d3 fix mach proxy and templates 2026-02-07 11:53:39 -06:00
John Alanbrook
0ae59705d4 fix errors 2026-02-07 11:53:26 -06:00
John Alanbrook
8e2607b6ca Merge branch 'mcode2' into mach 2026-02-07 10:54:19 -06:00
John Alanbrook
dc73e86d8c handle mcode in callinternal 2026-02-07 10:51:45 -06:00
John Alanbrook
555cceb9d6 fixed text runner 2026-02-07 10:51:27 -06:00
John Alanbrook
fbb7933eb6 Merge branch 'mcode2' into mach 2026-02-07 10:40:20 -06:00
John Alanbrook
0287d6ada4 regex uses C strings now 2026-02-07 10:28:35 -06:00
John Alanbrook
73cd6a255d more test fixing 2026-02-07 07:59:52 -06:00
2 changed files with 1207 additions and 144 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -4,27 +4,33 @@
var passed = 0
var failed = 0
var errors = []
var error_names = []
var error_reasons = []
var fail_msg = ""
// pre-allocate 500 slots to avoid array growth during disruption handlers
for (var _i = 0; _i < 5; _i++) {
error_names[] = null
error_reasons[] = null
}
var fail = function(msg) {
fail_msg = msg
print("failed: " + msg)
disrupt
}
var assert_eq = function(actual, expected, msg) {
if (actual != expected) fail(msg + " (expected=" + text(expected) + " got=" + text(actual) + ")")
if (actual != expected) fail(msg + " (got=" + text(actual) + ")")
}
var run = function(name, fn) {
fail_msg = ""
fn()
passed = passed + 1
print("passed " + name)
} disruption {
error_names[failed] = name
error_reasons[failed] = fail_msg == "" ? "disruption" : fail_msg
failed = failed + 1
errors[] = name
}
var should_disrupt = function(fn) {
@@ -3367,10 +3373,10 @@ run("gc object from keys function under pressure", function() {
// SUMMARY
// ============================================================================
print(`\nResults: ${passed} passed, ${failed} failed out of ${passed + failed}`)
print(text(passed) + " passed, " + text(failed) + " failed out of " + text(passed + failed))
if (failed > 0) {
print("Failed tests:")
arrfor(errors, function(name) {
print(` - ${name}`)
})
print("")
for (var _j = 0; _j < failed; _j++) {
print(" FAIL " + error_names[_j] + ": " + error_reasons[_j])
}
}