Permalink
Browse files

add less than matcher on cloud9ide

  • Loading branch information...
1 parent 9e55eb4 commit ce46ccc7b06b354346483be0fbd0e581efb6f4a5 @garrensmith committed May 13, 2011
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/matchers.js
View
@@ -13,6 +13,12 @@ var matcher = function (actual) {
this.notBeEqual= function (expected) {
assert.notDeepEqual(actual, expected);
};
+
+ this.beLessThan = function (expected) {
+ if (actual > expected) {
+ throw { message: actual + " is greater than " + expected + " expected to be less"}
+ }
+ };
this.throwError = function () {
var didThrow = false;

0 comments on commit ce46ccc

Please sign in to comment.