aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/ValidatorsTest.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ValidatorsTest.js b/test/ValidatorsTest.js
index 22c7f390..f06e0b3a 100644
--- a/test/ValidatorsTest.js
+++ b/test/ValidatorsTest.js
@@ -19,6 +19,8 @@ ValidatorTest.prototype.testNumber = function() {
ValidatorTest.prototype.testInteger = function() {
assertEquals(angular.validator.integer("ab"), "Value is not a number.");
assertEquals(angular.validator.integer("1.1"), "Value is not a whole number.");
+ assertEquals(angular.validator.integer("1.0"), "Value is not a whole number.");
+ assertEquals(angular.validator.integer("1."), "Value is not a whole number.");
assertEquals(angular.validator.integer("-1",0), "Value can not be less than 0.");
assertEquals(angular.validator.integer("11",0,10), "Value can not be greater than 10.");
assertEquals(angular.validator.integer("1"), null);