From c02478c4010d54acfaed0318a2c2c689b468e92e Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sat, 22 Oct 2016 16:27:36 -0700 Subject: 3558 --- html/002test.cc.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'html/002test.cc.html') diff --git a/html/002test.cc.html b/html/002test.cc.html index 2010d08a..8ef2c73d 100644 --- a/html/002test.cc.html +++ b/html/002test.cc.html @@ -36,18 +36,18 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color //: 'test_'. To run all tests so defined, run: //: $ mu test //: -//: So far it seems tasteful for layers to never ever reach back to modify -//: previously-defined tests. Every test is a contract once written, and should -//: pass as-is if it is included, regardless of how much later layers change -//: the program. Avoid writing 'temporary' tests that only work with some -//: subsets of the program. +//: Every layer should include tests, and can reach into previous layers. +//: However, it seems like a good idea never to reach into tests from previous +//: layers. Every test should be a contract that always passes as originally +//: written, regardless of any later layers. Avoid writing 'temporary' tests +//: that are only meant to work until some layer. :(before "End Types") typedef void (*test_fn)(void); :(before "Globals") // move a global ahead into types that we can't generate an extern declaration for const test_fn Tests[] = { - #include "test_list" // auto-generated; see makefile + #include "test_list" // auto-generated; see 'build' script }; :(before "End Globals") -- cgit 1.4.1-2-gfad0