Skip to content

Commit

Permalink
Fix bug in exec.cpp test.
Browse files Browse the repository at this point in the history
It was adding file_match_generator multiple times, which is both
unnecessary and incorrect.
  • Loading branch information
chrisant996 committed Dec 5, 2020
1 parent c3ae278 commit 17dadf3
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions clink/app/test/exec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,6 @@ TEST_CASE("Executable match generation.")

SECTION("Space prefix")
{
tester.get_editor()->add_generator(file_match_generator());

settings::find("exec.space_prefix")->set("1");

SECTION("None")
Expand Down Expand Up @@ -269,8 +267,6 @@ TEST_CASE("Executable match generation.")

SECTION("False positive")
{
tester.get_editor()->add_generator(file_match_generator());

tester.set_input("nullcmd \"&&\" o");
tester.set_expected_matches("one_local.exe", "one_local.txt", "one_dir\\");
tester.run();
Expand Down

0 comments on commit 17dadf3

Please sign in to comment.