@@ -69,10 +69,10 @@ SCENARIO("journalling_symbol_table_writer",
69
69
}
70
70
WHEN (" Adding the same symbol again" )
71
71
{
72
- auto result= symbol_table.insert (symbol);
72
+ const auto result_re_insert = symbol_table.insert (symbol);
73
73
THEN (" The insert should fail" )
74
74
{
75
- REQUIRE (!result .second );
75
+ REQUIRE (!result_re_insert .second );
76
76
}
77
77
}
78
78
}
@@ -106,10 +106,10 @@ SCENARIO("journalling_symbol_table_writer",
106
106
WHEN (" Moving the same symbol again" )
107
107
{
108
108
symbolt *symbol_in_table2;
109
- auto result= symbol_table.move (symbol, symbol_in_table2);
109
+ const auto result_move = symbol_table.move (symbol, symbol_in_table2);
110
110
THEN (" The move should fail" )
111
111
{
112
- REQUIRE (result );
112
+ REQUIRE (result_move );
113
113
}
114
114
THEN (" The returned pointer should match the previous move result" )
115
115
{
@@ -145,10 +145,10 @@ SCENARIO("journalling_symbol_table_writer",
145
145
}
146
146
WHEN (" Adding the same symbol again" )
147
147
{
148
- auto result= symbol_table.add (symbol);
148
+ auto result_add_2 = symbol_table.add (symbol);
149
149
THEN (" The insert should fail" )
150
150
{
151
- REQUIRE (result );
151
+ REQUIRE (result_add_2 );
152
152
}
153
153
}
154
154
}
@@ -259,16 +259,16 @@ SCENARIO("journalling_symbol_table_writer",
259
259
{
260
260
symbolt symbol;
261
261
symbol.name = symbol_name;
262
- auto result= symbol_table.add (symbol);
262
+ const auto result_add_1 = symbol_table.add (symbol);
263
263
symbol_table.remove (symbol.name );
264
- auto result2= symbol_table.add (symbol);
264
+ const auto result_add_2 = symbol_table.add (symbol);
265
265
THEN (" The first add should succeed" )
266
266
{
267
- REQUIRE (!result );
267
+ REQUIRE (!result_add_1 );
268
268
}
269
269
THEN (" The second add should succeed" )
270
270
{
271
- REQUIRE (!result );
271
+ REQUIRE (!result_add_2 );
272
272
}
273
273
THEN (" The symbol should be journalled as updated but not removed" )
274
274
{
0 commit comments