Skip to content
This repository
Browse code

more examples

  • Loading branch information...
commit 8d5836eae4a939860838993d6a38f944feef2035 1 parent 0c2bbbf
Daniel Seidler authored

Showing 1 changed file with 17 additions and 3 deletions. Show diff stats Hide diff stats

  1. +17 3 README.md
20 README.md
Source Rendered
@@ -29,14 +29,28 @@ Every verb can be negated by __!__ operator
29 29 ###Any
30 30 Any matchers may be used on any type of object.
31 31 ####be | !be equal
32   -equal matchfunction should only be used on types, that implement equals function correctly
  32 +Equal <matchfunction> should only be used on types, that implement equals function correctly
33 33
34 34 1 should be equal 1 //✔
35 35 2 should !be equal 1 //✔
36 36 "string" should be equal "string" //✔
37 37 "string" should be equal "str" //✘
38 38 ####be | !be any
  39 +Match the result to any object in a list
  40 +
  41 + 1 should be any of(1,2,3) //✔ of is a convenient function to create a list
  42 + 1 should be any arrayList(1,2,3) //✔ same as above
  43 + "abc" should be any of("cab", "bac", "abc") //✔
  44 + 4 should !be any of(1,2,3) //✔
  45 + 4 should !be any of (1,2,4) //✘
39 46
40 47 ###String
41   -####
42   -###Function
  48 +####have | !have length
  49 +####start | !start with
  50 +####end | !end with
  51 +####contain | !contain any
  52 +####contain | !contain all
  53 +
  54 +
  55 +###Function
  56 +####fail | !fail with

0 comments on commit 8d5836e

Please sign in to comment.
Something went wrong with that request. Please try again.