aboutsummaryrefslogtreecommitdiffstats
path: root/test/ValidatorsTest.js
diff options
context:
space:
mode:
authorMisko Hevery2010-02-05 14:41:45 -0800
committerMisko Hevery2010-02-05 14:41:54 -0800
commit9d566a0cd0225685efb192c195280b6857628d32 (patch)
treef71fd89b414a2339794d00ea9a7d4dbef6fe2e36 /test/ValidatorsTest.js
parent6d75afe6d2ea26bb412becd1e8f7cab8031eaab4 (diff)
downloadangular.js-9d566a0cd0225685efb192c195280b6857628d32.tar.bz2
better integer farmater
Diffstat (limited to 'test/ValidatorsTest.js')
-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);