Skip to content

Commit

Permalink
(yegor256#1574) Use 'Must' in assertion messages
Browse files Browse the repository at this point in the history
Co-authored-by: Victor Noël <[email protected]>
  • Loading branch information
DmitryBarskov and victornoel committed Jul 19, 2021
1 parent 85a26bd commit 303e570
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/test/java/org/cactoos/text/StrictTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ void acceptsCharSequencePredicate() {
seq -> seq.length() > 3
);
new Assertion<>(
"Given strings are not equal",
"Must be equal strings",
new Strict(longerThanThree, new TextOf("sequence")),
new IsText("sequence")
).affirm();
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/org/cactoos/text/SubTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ void acceptsCharSequence() {
sequence -> sequence.length() / 2
);
new Assertion<>(
"Can't cut a text with start",
"Must cut a text with start",
new Sub(new TextOf("sequence"), halfLength),
new IsText("ence")
).affirm();
Expand Down

0 comments on commit 303e570

Please sign in to comment.