Permalink
Browse files

Adding an assert to check for zero prefixed numbers

  • Loading branch information...
1 parent 7546be6 commit 7d080ea2d1e74ba869a8bbd17344cb1fde892834 Jelle Henkens committed May 22, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/Cake/Test/Case/Utility/ValidationTest.php
@@ -1973,6 +1973,7 @@ public function testNaturalNumber() {
$this->assertFalse(Validation::naturalNumber('-2'));
$this->assertFalse(Validation::naturalNumber(-2));
$this->assertFalse(Validation::naturalNumber('0'));
+ $this->assertFalse(Validation::naturalNumber('050'));
$this->assertTrue(Validation::naturalNumber('2'));
$this->assertTrue(Validation::naturalNumber(49));

0 comments on commit 7d080ea

Please sign in to comment.