about summary refs log tree commit diff stats
path: root/cpp/025name
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-04-08 00:19:01 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-04-08 00:19:01 -0700
commit052535fd401bf3521efaf9e5775ad21ef1ec9eaa (patch)
treea8cc480b4db18865a24abd4e7ca3379021870032 /cpp/025name
parent6324f6af51318df7979ba92d4572d6c62bb40329 (diff)
downloadmu-052535fd401bf3521efaf9e5775ad21ef1ec9eaa.tar.gz
1033 - clear any new name tables created in each test
Diffstat (limited to 'cpp/025name')
-rw-r--r--cpp/025name6
1 files changed, 5 insertions, 1 deletions
diff --git a/cpp/025name b/cpp/025name
index 78250426..6f61234d 100644
--- a/cpp/025name
+++ b/cpp/025name
@@ -23,8 +23,12 @@ Transform.push_back(transform_names);
 
 :(before "End Globals")
 unordered_map<recipe_number, unordered_map<string, int> > Name;
-:(before "End Setup")
+:(before "End One-time Setup")
 Name.clear();
+:(before "recipes_added_by_test.clear()")
+for (size_t i = 0; i < recipes_added_by_test.size(); ++i) {
+  Name.erase(recipes_added_by_test[i]);
+}
 
 :(code)
 void transform_names(const recipe_number r) {