about summary refs log tree commit diff stats
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
parent6324f6af51318df7979ba92d4572d6c62bb40329 (diff)
downloadmu-052535fd401bf3521efaf9e5775ad21ef1ec9eaa.tar.gz
1033 - clear any new name tables created in each test
-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) {
8490f17d ^








c56d803c ^
d1262cd6 ^
2c6a077f ^


1837c616 ^
a0db7903 ^
c2532c2d ^
76aace46 ^
e59a91b7 ^
39d718af ^

a8f47b4a ^
c6f52200 ^


8bf0c436 ^
8490f17d ^
e59a91b7 ^
39d718af ^
58abd047 ^
50a6c048 ^

39d718af ^
cbe5bec6 ^
39d718af ^
cbe5bec6 ^
39d718af ^
521ff2f1 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68