Skip to content
This repository has been archived by the owner on May 7, 2023. It is now read-only.

Commit

Permalink
increase test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubkrapiec committed Oct 1, 2020
1 parent f943300 commit 36c1d55
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/filesize_test.dart
Expand Up @@ -33,4 +33,14 @@ void main() {
test("1P", () {
expect(filesize(1024 * 1024 * 1024 * 1024 * 1024), "1 PB");
});

test('Exception test', () {
ArgumentError exception;
try {
filesize('abc');
} on ArgumentError catch (e) {
exception = e;
}
expect(exception, isArgumentError);
});
}

0 comments on commit 36c1d55

Please sign in to comment.