Skip to content

Commit 4a87719

Browse files
committed
Merge pull request hamcrest#71 from NarendraPathai/Issue62
Improved the Javadocs of StringContainsInOrder
2 parents 49fdbb6 + 372203e commit 4a87719

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎hamcrest-library/src/main/java/org/hamcrest/text/StringContainsInOrder.java‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,11 @@ public void describeTo(Description description) {
4242

4343
/**
4444
* Creates a matcher of {@link String} that matches when the examined string contains all of
45-
* the specified substrings, regardless of the order of their appearance.
45+
* the specified substrings, considering the order of their appearance.
4646
* <p/>
4747
* For example:
4848
* <pre>assertThat("myfoobarbaz", stringContainsInOrder(Arrays.asList("bar", "foo")))</pre>
49+
* fails as "foo" occurs before "bar" in the string "myfoobarbaz"
4950
*
5051
* @param substrings
5152
* the substrings that must be contained within matching strings
@@ -57,10 +58,11 @@ public static Matcher<String> stringContainsInOrder(Iterable<String> substrings)
5758

5859
/**
5960
* Creates a matcher of {@link String} that matches when the examined string contains all of
60-
* the specified substrings, regardless of the order of their appearance.
61+
* the specified substrings, considering the order of their appearance.
6162
* <p/>
6263
* For example:
6364
* <pre>assertThat("myfoobarbaz", stringContainsInOrder("bar", "foo"))</pre>
65+
* fails as "foo" occurs before "bar" in the string "myfoobarbaz"
6466
*
6567
* @param substrings
6668
* the substrings that must be contained within matching strings

0 commit comments

Comments
 (0)