From 052535fd401bf3521efaf9e5775ad21ef1ec9eaa Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Wed, 8 Apr 2015 00:19:01 -0700 Subject: 1033 - clear any new name tables created in each test --- cpp/025name | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 > 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) { -- cgit 1.4.1-2-gfad0