Skip to content

Commit

Permalink
added two new matchers to readme (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpolack committed Dec 17, 2020
1 parent 160fd77 commit 43f86e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Expand Up @@ -63,5 +63,7 @@ then.AssertThat(t, "abcdef", is.AllOf(is.ValueContaining("abc"), is.LessThan("gh
- has.Suffix(x) - string ends with x
- has.Key(x) - map has key x
- has.AllKeys(T x, T y) (or has.AllKeys([]T{x,y})) - finds key of type T in map
- has.EveryElement(x1...xn) - checks if actual[i] matches corresponding expectation (x[i])
- has.StructWithValues(map[string]*gocrest.Matcher) - checks if actual[key] matches corresponding expectation (x[key])

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

0 comments on commit 43f86e3

Please sign in to comment.