diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-04-22 11:59:09 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-04-22 12:02:40 -0700 |
commit | d16dee594404a49f68df93f92efa1790e7a17273 (patch) | |
tree | 5a24db8b7728ca156a0cc874cadc0cfc9a5fe8f8 /cpp/001test | |
parent | ccd792dace1439b60882fafd1d1bd4b06c405d9e (diff) | |
download | mu-d16dee594404a49f68df93f92efa1790e7a17273.tar.gz |
1127
Move assertions about test space right before running all tests. (But not before running *every* test.) This is a good trip-wire, but it requires that we remember to set it in any new code paths running tests. Still one wart: layer 1 depends on layer 10.
Diffstat (limited to 'cpp/001test')
-rw-r--r-- | cpp/001test | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cpp/001test b/cpp/001test index 0db10e4b..2319348b 100644 --- a/cpp/001test +++ b/cpp/001test @@ -49,6 +49,7 @@ if (argc == 2 && is_equal(argv[1], "test")) { } // pass in a set of line numbers in test_file to run just those tests if (argc > 2 && is_equal(argv[1], "test") && is_number(argv[2])) { + assert(Next_recipe_number < 1000); // see vm layer for (int i = 2; i < argc; ++i) { run_test(to_int(argv[i])-1); } |