ww: lib tests run via -T test mode; bare mains retired (closes @test conversion)
'ww test' gains the istest build path (-T injection in build_one/ buildone) and do_test/dotest accept -I, mirroring do_run - both twins. The 35 converted lib tests drop their interim bare mains (-T synthesizes the entry from @test fns and rejects a user main); their 35 C run-drivers flip 'ww run' -> 'ww test'; 989_lib_byteid compiles lib tests under -T (8 user-main probe fixtures stay non-T, gated on the fixture field). Abort-on-first-failure stands until the deferred record-and-continue harness lands with the multi-package arc.
This commit is contained in:
@@ -810,27 +810,3 @@ fn expect_tok(toks: [][]u8, i: i32, want: []u8) void = {
|
||||
assert(!(!bytes.equal(b4, h[0:6])));
|
||||
assert(!(!bytes.equal(a4, z[0:0])));
|
||||
};
|
||||
|
||||
export fn main() i32 = {
|
||||
equal_cases();
|
||||
index_byte_cases();
|
||||
index_slice_cases();
|
||||
rindex_byte_cases();
|
||||
rindex_slice_cases();
|
||||
contains_cases();
|
||||
hasprefix_cases();
|
||||
hassuffix_cases();
|
||||
tokenize_cases();
|
||||
rtokenize_cases();
|
||||
peek_token_cases();
|
||||
remaining_tokens_cases();
|
||||
splitn_cases();
|
||||
rsplitn_cases();
|
||||
split_cases();
|
||||
ltrim_cases();
|
||||
rtrim_cases();
|
||||
trim_cases();
|
||||
cut_cases();
|
||||
rcut_cases();
|
||||
return 0;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user