about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-04-08 01:15:41 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-04-08 01:15:41 -0700
commit286d762019a217231f5969e03b4a519a2eab447e (patch)
treeee7b70990c46f4d1af46d08eeef6ac5baf0a1b04
parent96f19e1e57c9d8508c7003aa4de4a87d0c7239c3 (diff)
downloadmu-286d762019a217231f5969e03b4a519a2eab447e.tar.gz
1039
-rw-r--r--cpp/010vm3
-rw-r--r--cpp/011load4
-rw-r--r--cpp/013run2
-rw-r--r--cpp/025name2
4 files changed, 6 insertions, 5 deletions
diff --git a/cpp/010vm b/cpp/010vm
index aa75c6ae..826c2069 100644
--- a/cpp/010vm
+++ b/cpp/010vm
@@ -135,7 +135,8 @@ void setup_recipes() {
 }
 //: We could just reset the recipe table after every test, but that gets slow
 //: all too quickly. Instead, initialize the common stuff just once at
-//: startup, and carefully undo each test's additions after itself.
+//: startup. Later layers will carefully undo each test's additions after
+//: itself.
 :(before "End One-time Setup")
   setup_recipes();
   // End Load Recipes
diff --git a/cpp/011load b/cpp/011load
index 3ef1a409..cff79edd 100644
--- a/cpp/011load
+++ b/cpp/011load
@@ -188,7 +188,7 @@ void skip_comma(istream& in) {
   skip_whitespace(in);
 }
 
-//: Recipes added for tests should be easy to remove as well.
+//: Have tests clean up any recipes they added.
 :(before "End Globals")
 vector<recipe_number> recently_added_recipes;
 :(before "End Setup")
@@ -197,7 +197,7 @@ for (size_t i = 0; i < recently_added_recipes.size(); ++i) {
   Recipe_number.erase(Recipe[recently_added_recipes[i]].name);
   Recipe.erase(recently_added_recipes[i]);
 }
-// Clear state for recently_added_recipes
+// Clear Other State For recently_added_recipes.
 recently_added_recipes.clear();
 
 :(scenario parse_comment_outside_recipe)
diff --git a/cpp/013run b/cpp/013run
index 134df75a..63a27e48 100644
--- a/cpp/013run
+++ b/cpp/013run
@@ -111,7 +111,7 @@ void load(string filename) {
 //: On startup, load everything in core.mu
 :(before "End Load Recipes")
 load("core.mu");
-recently_added_recipes.clear();  // Freeze everything so it doesn't get cleared by tests.
+recently_added_recipes.clear();  // freeze everything so it doesn't get cleared by tests
 
 //: helper for tests
 
diff --git a/cpp/025name b/cpp/025name
index 62c07c85..a08c0702 100644
--- a/cpp/025name
+++ b/cpp/025name
@@ -25,7 +25,7 @@ Transform.push_back(transform_names);
 unordered_map<recipe_number, unordered_map<string, int> > Name;
 :(before "End One-time Setup")
 Name.clear();
-:(before "Clear state for recently_added_recipes")
+:(after "Clear Other State For recently_added_recipes")
 for (size_t i = 0; i < recently_added_recipes.size(); ++i) {
   Name.erase(recently_added_recipes[i]);
 }