Browse Source

EAGLESIX-2353 added a test case to show that the minimum number of arguments can be 0.

Tony Ennis 11 years ago
parent
commit
56f2569b63
1 changed files with 6 additions and 0 deletions
  1. 6 0
      test/lib/pipeline/expressions/NaryExpression.js

+ 6 - 0
test/lib/pipeline/expressions/NaryExpression.js

@@ -130,6 +130,12 @@ module.exports = {
 				assert.throws(function() {
 					testableExpr.checkArgCountRange(2, 4);
 				});
+			},
+			"should accept if there are no operands but the lower range is 0": function(){
+				var testableExpr = new TestableExpression();
+				assert.doesNotThrow(function() {
+					testableExpr.checkArgCountRange(0, 4);
+				});
 			}
 		},