Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/validate/formatter/NumberTest.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/validate/formatter/NumberTest.js b/test/validate/formatter/NumberTest.js
index 7945b70..0e036d8 100644
--- a/test/validate/formatter/NumberTest.js
+++ b/test/validate/formatter/NumberTest.js
@@ -42,6 +42,10 @@ describe( 'validate.formatter.Number', function()
// strip decimals
"1.234": [ "1", "1" ],
" 1, ,.": [ "1", "1" ],
+
+ // non-numbers
+ "foo": false,
+ "123foo": false,
} );
@@ -62,6 +66,10 @@ describe( 'validate.formatter.Number', function()
"12,345": [ "12345.000", "12,345.000" ],
" 1, ,.": [ "1.000", "1.000" ],
+
+ // non-numbers
+ "1.foo": false,
+ "123foo.012": false,
} );