Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Int matchers description

  • Loading branch information...
commit d784f7bdeac7d351f453de41429ced1354d6ee32 1 parent 779fd78
@danseid authored
Showing with 30 additions and 0 deletions.
  1. +30 −0 README.md
View
30 README.md
@@ -43,8 +43,38 @@ Match the result to any object in a list
"abc" should be any of("cab", "bac", "abc") //✔
4 should !be any of(1,2,3) //✔
4 should !be any of (1,2,4) //✘
+
###Int
Matchers to use on Int objects
+#### be | !be gt |greaterThan
+ 1 should be gt 0 //✔
+ 1 should be greaterThan 0 //✔ same as above
+ 1 should !be gt 1 //✔
+ 1 should !be gt 2 //✔
+ 1 should be gt 1 //✘
+ 1 should be gt 2 //✘
+#### be | !be gte | greaterOrEqualThan
+ 1 should be gte 0 //✔
+ 1 should be greaterOrEqualThan 0 //✔ same as above
+ 1 should be gte 1 //✔
+ 1 should !be gte 2 //✔
+ 1 should !be gte 1 //✘
+ 1 should be gte 2 //✘
+#### be | !be lt | lessThan
+ 1 should be lt 2 //✔
+ 1 should be lessThan 2 //✔ same as above
+ 1 should !be lt 1 //✔
+ 1 should !be lt 0 //✔
+ 1 should be lt 1 //✘
+ 1 should be lt 0 //✘
+#### be | !be lte | lessOrEqualThan
+ 1 should be lte 2 //✔
+ 1 should be lessOrEqualThan 2 //✔ same as above
+ 1 should be lte 1 //✔
+ 1 should !be lte 0 //✔
+ 1 should !be lte 1 //✘
+ 1 should be lte 0 //✘
+
###String
Matchers to use on string objects
####have | !have length
Please sign in to comment.
Something went wrong with that request. Please try again.