Skip to content

Commit 43f86e3

Browse files
authored
added two new matchers to readme (#5)
1 parent 160fd77 commit 43f86e3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,7 @@ then.AssertThat(t, "abcdef", is.AllOf(is.ValueContaining("abc"), is.LessThan("gh
6363
- has.Suffix(x) - string ends with x
6464
- has.Key(x) - map has key x
6565
- has.AllKeys(T x, T y) (or has.AllKeys([]T{x,y})) - finds key of type T in map
66+
- has.EveryElement(x1...xn) - checks if actual[i] matches corresponding expectation (x[i])
67+
- has.StructWithValues(map[string]*gocrest.Matcher) - checks if actual[key] matches corresponding expectation (x[key])
6668

6769
For more comprehensive documentation see [godoc](http://godoc.org/github.com/corbym/gocrest).

0 commit comments

Comments
 (0)