Skip to content

Commit

Permalink
Updated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mystralkk committed Jan 22, 2022
1 parent 57cf1a4 commit cb86914
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/system/classes/ValidatorClassTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function testBetween()
$this->assertEquals(true, $validator->between('Geeklog', 1, 16));
$this->assertEquals(true, $validator->between('日本', 1, 10));
$this->assertEquals(false, $validator->between('Geeklog', 1, 5));
$this->assertEquals(false, $validator->between('アメリカ合衆国', 1, 15));
$this->assertEquals(false, $validator->between('アメリカ合衆国', 1, 5));
}

/**
Expand Down
6 changes: 3 additions & 3 deletions tests/system/classes/timerobjectClassTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function testStartTimerEqualsDummy()
{
$time = microtime(true);
$this->t->startTimer();
$this->assertEquals($time, $this->t->getStartTime(), '', $this->prec);
$this->assertTrue(abs($time - $this->t->getStartTime()) <= $this->prec);
}

public function testStartTimerReturnsFloat()
Expand All @@ -48,7 +48,7 @@ public function testStopTimerEqualsDummy()
{
$time = microtime(true);
$this->t->stopTimer();
$this->assertEquals($time, $this->t->getEndTime(), '', $this->prec);
$this->assertTrue(abs($time - $this->t->getEndTime()) <= $this->prec);
}

public function testStopTimerReturnsCorrectDefaultDegreeOfPrecision()
Expand Down Expand Up @@ -82,7 +82,7 @@ public function testRestartRedefines_StartTime()
{
$this->t->restart();
$time = microtime(true);
$this->assertEquals($time, $this->t->getStartTime(), '', $this->prec);
$this->assertTrue(abs($time - $this->t->getStartTime()) <= $this->prec);
}

public function testGetElapsedTimeReturnsDefaultDegreeOfPrecision()
Expand Down

0 comments on commit cb86914

Please sign in to comment.