lib: split time_test into duration/instant/arithm tests per ref/hare/time
Mirror ref/hare/time's impl layout in the test siblings: constants -> duration_test.ww (ref/hare/time/duration.ha:9-18 owns the constants); now/sleep rows -> instant_test.ww (instant is the subject type, ref/hare/time/instant.ha; now/sleep bodies live in ref/hare/time/+linux/functions.ha, a platform split ww does not have); add/diff/compare rows -> arithm_test.ww (ref/hare/time/arithm.ha). Pure move: every @test block is byte-identical; only the section banner lines are deleted (the file names now carry them). The stale file header naming the retired `ww run lib/time/timetest.ww` entry point is dropped, not relocated (rule 8: it described a WHAT that no longer exists). Consumers: Makefile LIBRARY_TESTS entry replaced in place; test/byteid roster 44->46 (+2).
This commit is contained in:
@@ -43,7 +43,7 @@ import time;
|
||||
def MID: i32 = 0;
|
||||
def MDIVERGE: i32 = 1;
|
||||
def MWWREJECT: i32 = 2;
|
||||
def NENTEXPECT: i32 = 45;
|
||||
def NENTEXPECT: i32 = 47;
|
||||
|
||||
type ent = struct {
|
||||
fixture: str, // repo-relative .ww; "" -> probe entry
|
||||
@@ -83,7 +83,7 @@ fn pri(p: str, inc: str, sentinel: str, moddir: str) ent = {
|
||||
return e;
|
||||
};
|
||||
|
||||
// The 44-unit roster. Graduation history lives in git (the retired C
|
||||
// The 46-unit roster. Graduation history lives in git (the retired C
|
||||
// carrier's table comments); cites are kept only where a non-ID pin
|
||||
// would need them.
|
||||
fn corpus() []ent = {
|
||||
@@ -111,7 +111,9 @@ fn corpus() []ent = {
|
||||
append(es, fx("lib/strconv/test/int_test.ww"));
|
||||
append(es, fx("lib/strings/strings_test.ww"));
|
||||
append(es, fx("lib/temp/temp_test.ww"));
|
||||
append(es, fx("lib/time/time_test.ww"));
|
||||
append(es, fx("lib/time/arithm_test.ww"));
|
||||
append(es, fx("lib/time/duration_test.ww"));
|
||||
append(es, fx("lib/time/instant_test.ww"));
|
||||
append(es, fx("lib/bufio/bufio_test.ww"));
|
||||
append(es, fx("lib/fmt/fmt_test.ww"));
|
||||
append(es, pr("package main;\nimport sort;\nfn main() i32 = { return 0; };\n",
|
||||
|
||||
Reference in New Issue
Block a user