Skip to content

Commit

Permalink
Add some more test cases for Strings#isJMLComment
Browse files Browse the repository at this point in the history
  • Loading branch information
unp1 committed Oct 20, 2023
1 parent 1662d51 commit 3f4ebee
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions key.util/src/test/java/org/key_project/util/StringsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,14 @@ void isJMLComment() {
String[] correctComments = {
"/*@ requires ", "//@ requires",
"/*+KeY@ requires", "//+KeY@ requires",
"/*-OtherTool@", "//-OtherTool@"
"/*-OtherTool@ requires", "//-OtherTool@ requires"
};
String[] inCorrectComments = {
"/* @ requires ", "// @ requires",
"/* +KeY@ requires", "//+KeY requires",
"/*+OtherTool@ requires", "//+OtherTool@ requires",
"/*-KeY@", "//*-KeY@"
"/*-OtherTool requires", "//-OtherTool requires",
"/*-KeY@ requires", "//*-KeY@ requires"
};

for (var comment : correctComments) {
Expand Down

0 comments on commit 3f4ebee

Please sign in to comment.