Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
meezaan committed Apr 14, 2021
1 parent 37b67a7 commit 52a009d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/Unit/ScaleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,23 @@ class ScaleTest extends TestCase
*/
public function testScale()
{
$scale = new Scale(65, 30, 50, 60, 70, 55);
$scale = new Scale(65, 30, 50, 60, 70, 55, 'used');
$this->assertFalse($scale->scaleDown());
$this->assertFalse($scale->scaleUp());

$scale = new Scale(65, 30, 67, 60, 70, 60);
$scale = new Scale(65, 30, 67, 60, 70, 60, 'used');
$this->assertFalse($scale->scaleDown());
$this->assertTrue($scale->scaleUp());

$scale = new Scale(65, 30, 63, 70, 60, 50);
$scale = new Scale(65, 30, 63, 70, 60, 50, 'requested');
$this->assertFalse($scale->scaleDown());
$this->assertTrue($scale->scaleUp());

$scale = new Scale(65, 30, 29, 70, 80, 75);
$scale = new Scale(65, 30, 29, 70, 80, 75, 'requested');
$this->assertTrue($scale->scaleDown());
$this->assertFalse($scale->scaleUp());

$scale = new Scale(65, 30, 40, 70, 80, 75);
$scale = new Scale(65, 30, 40, 70, 80, 75, 'requested');
$this->assertTrue($scale->scaleDown());
$this->assertFalse($scale->scaleUp());

Expand Down

0 comments on commit 52a009d

Please sign in to comment.