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 Int32.parseHex.
Browse files Browse the repository at this point in the history
  • Loading branch information
cbracken committed Feb 11, 2015
1 parent 8f9901c commit 7c6e8b4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/int32_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,12 @@ void main() {
expect(Int32.parseInt('1000'), new Int32(1000));
expect(Int32.parseInt('4294967296'), new Int32(4294967296));
});

test("parseHex", () {
expect(Int32.parseHex('deadbeef'), new Int32(0xdeadbeef));
expect(Int32.parseHex('cafebabe'), new Int32(0xcafebabe));
expect(Int32.parseHex('8badf00d'), new Int32(0x8badf00d));
});
});

group("string representation", () {
Expand Down

0 comments on commit 7c6e8b4

Please sign in to comment.