Browse Source

Merge branch 'feature/mongo_2.6.5_matcher_Equality' of github.com:RiveraGroup/mungedb-aggregate into feature/mongo_2.6.5_matcher_Equality

* 'feature/mongo_2.6.5_matcher_Equality' of github.com:RiveraGroup/mungedb-aggregate:
  EAGLESIX-2994: Added extra test case and accidentally commented out test case
Chris Sexton 11 years ago
parent
commit
70e568f2fd

+ 1 - 1
test/lib/pipeline/matcher/GTEMatchExpression.js

@@ -43,7 +43,7 @@ module.exports = {
 			var s = e.init('a',[5]);
 			var s = e.init('a',[5]);
 
 
 			assert.strictEqual(s.code, 'OK');
 			assert.strictEqual(s.code, 'OK');
-			assert.ok( ! e.matches({'a':[6]}) );
+			assert.ok( e.matches({'a':[6]}) );
 		},
 		},
 		"should not match null" : function() {
 		"should not match null" : function() {
 			var e = new GTEMatchExpression();
 			var e = new GTEMatchExpression();

+ 1 - 1
test/lib/pipeline/matcher/GTMatchExpression.js

@@ -43,7 +43,7 @@ module.exports = {
 			var s = e.init('a',[5]);
 			var s = e.init('a',[5]);
 
 
 			assert.strictEqual(s.code, 'OK');
 			assert.strictEqual(s.code, 'OK');
-			assert.ok( ! e.matches({'a':[6]}) );
+			assert.ok( e.matches({'a':[6]}) );
 		},
 		},
 		"should not match null" : function() {
 		"should not match null" : function() {
 			var e = new GTMatchExpression();
 			var e = new GTMatchExpression();

+ 1 - 1
test/lib/pipeline/matcher/LTEMatchExpression.js

@@ -43,7 +43,7 @@ module.exports = {
 			var s = e.init('a',[5]);
 			var s = e.init('a',[5]);
 
 
 			assert.strictEqual(s.code, 'OK');
 			assert.strictEqual(s.code, 'OK');
-			assert.ok( ! e.matches({'a':[4]}) );
+			assert.ok(e.matches({'a':[4]}) );
 		},
 		},
 		"should not match null" : function() {
 		"should not match null" : function() {
 			var e = new LTEMatchExpression();
 			var e = new LTEMatchExpression();

+ 1 - 1
test/lib/pipeline/matcher/LTMatchExpression.js

@@ -51,7 +51,7 @@ module.exports = {
 			var s = e.init('a',[5]);
 			var s = e.init('a',[5]);
 
 
 			assert.strictEqual(s.code, 'OK');
 			assert.strictEqual(s.code, 'OK');
-			assert.ok( ! e.matches({'a':[4]}) );
+			assert.ok( e.matches({'a':[4]}) );
 		},
 		},
 		"should not match null" : function() {
 		"should not match null" : function() {
 			var e = new LTMatchExpression();
 			var e = new LTMatchExpression();