Skip to content

Commit

Permalink
Add find source files negation test.
Browse files Browse the repository at this point in the history
I didn't even realize the recipe had this feature.
  • Loading branch information
sambsnyd committed Nov 21, 2024
1 parent a303b79 commit 0e52b94
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,4 +170,13 @@ void eitherOr() {
)
);
}

@Test
void negation() {
rewriteRun(
spec -> spec.recipe(new FindSourceFiles("!(**/not-this.txt)")),
text("not-this", spec -> spec.path("not-this.txt")),
text("this", "~~>this", spec -> spec.path("this.txt"))
);
}
}

0 comments on commit 0e52b94

Please sign in to comment.