Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

more examples

  • Loading branch information...
commit 8d5836eae4a939860838993d6a38f944feef2035 1 parent 0c2bbbf
@danseid authored
Showing with 17 additions and 3 deletions.
  1. +17 −3 README.md
View
20 README.md
@@ -29,14 +29,28 @@ Every verb can be negated by __!__ operator
###Any
Any matchers may be used on any type of object.
####be | !be equal
-equal matchfunction should only be used on types, that implement equals function correctly
+Equal <matchfunction> should only be used on types, that implement equals function correctly
1 should be equal 1 //✔
2 should !be equal 1 //✔
"string" should be equal "string" //✔
"string" should be equal "str" //✘
####be | !be any
+Match the result to any object in a list
+
+ 1 should be any of(1,2,3) //✔ of is a convenient function to create a list
+ 1 should be any arrayList(1,2,3) //✔ same as above
+ "abc" should be any of("cab", "bac", "abc") //✔
+ 4 should !be any of(1,2,3) //✔
+ 4 should !be any of (1,2,4) //✘
###String
-####
-###Function
+####have | !have length
+####start | !start with
+####end | !end with
+####contain | !contain any
+####contain | !contain all
+
+
+###Function
+####fail | !fail with
Please sign in to comment.
Something went wrong with that request. Please try again.