From d16dee594404a49f68df93f92efa1790e7a17273 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Wed, 22 Apr 2015 11:59:09 -0700 Subject: 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. --- cpp/010vm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cpp/010vm') diff --git a/cpp/010vm b/cpp/010vm index 0a1ada2c..0dbafc03 100644 --- a/cpp/010vm +++ b/cpp/010vm @@ -153,6 +153,8 @@ assert(MAX_PRIMITIVE_RECIPES < 100); // level 0 is primitives; until 99 Next_recipe_number = 100; // End Load Recipes delete Trace_stream; Trace_stream = new trace_stream; +:(after "void run_tests()") +assert(Next_recipe_number < 1000); // functions being tested didn't overflow into test space :(before "End Setup") Next_recipe_number = 1000; // consistent new numbers for each test -- cgit 1.4.1-2-gfad0