Skip to content

Commit

Permalink
spec for Terminal->readableSize() when value > base
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Sep 24, 2016
1 parent a66af12 commit 25cba60
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions spec/Suite/Reporter/Terminal.spec.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,13 @@
expect($result)->toBe($readableSize);
});

it("return round precision unit when value is >= 1 with value > base with loop value / base", function () {
$readableSize = '9.77K';

$result = $this->terminal->readableSize(10000, 2, 1024);
expect($result)->toBe($readableSize);
});

});

});

0 comments on commit 25cba60

Please sign in to comment.