Skip to content

Commit 639d4ed

Browse files
committed
Remove unnecessary reset instructions
For each WHEN, the outer GIVEN is going to be re-run, re-initializing the symbol table, so there is no need to reset the symbols.
1 parent 2aa3a2e commit 639d4ed

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

unit/util/symbol_table.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,6 @@ SCENARIO(
5959
symbol_table.validate(validation_modet::EXCEPTION),
6060
incorrect_goto_program_exceptiont);
6161
}
62-
// Reset symbol to a valid name after the previous test
63-
transformed_symbol.name = symbol_name;
6462
}
6563
WHEN(
6664
"A symbol base_name is transformed without updating the base_name "
@@ -76,8 +74,6 @@ SCENARIO(
7674
symbol_table.validate(validation_modet::EXCEPTION),
7775
incorrect_goto_program_exceptiont);
7876
}
79-
// Reset symbol to a valid base_name after the previous test
80-
transformed_symbol.base_name = "TestBase";
8177
}
8278
WHEN(
8379
"A symbol module identifier is transformed without updating the module "
@@ -92,8 +88,6 @@ SCENARIO(
9288
symbol_table.validate(validation_modet::EXCEPTION),
9389
incorrect_goto_program_exceptiont);
9490
}
95-
// Reset symbol to a valid module name
96-
transformed_symbol.module = "TestModule";
9791
}
9892
}
9993
}

0 commit comments

Comments
 (0)