Skip to content
This repository has been archived by the owner on Oct 17, 2024. It is now read-only.

Commit

Permalink
Add tests for illegal toRadixString arguments.
Browse files Browse the repository at this point in the history
  • Loading branch information
cbracken committed Feb 10, 2015
1 parent 9396ef0 commit e34a0a2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/int64_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -752,6 +752,9 @@ void main() {
expect(Int64.MAX_VALUE.toRadixString(14), "4340724c6c71dc7a7");
expect(Int64.MAX_VALUE.toRadixString(15), "160e2ad3246366807");
expect(Int64.MAX_VALUE.toRadixString(16), "7fffffffffffffff");
expect(() => new Int64(42).toRadixString(-1), throwsArgumentError);
expect(() => new Int64(42).toRadixString(0), throwsArgumentError);
expect(() => new Int64(42).toRadixString(37), throwsArgumentError);
});
});
}

0 comments on commit e34a0a2

Please sign in to comment.