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

Commit

Permalink
Add operator == tests for int RHS.
Browse files Browse the repository at this point in the history
  • Loading branch information
cbracken committed Feb 10, 2015
1 parent 77fd6a2 commit 08fa5ba
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/int64_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -319,14 +319,25 @@ void main() {
});

test("==", () {
expect(new Int64(0) == new Int64(0), true);
expect(new Int64(0) == new Int64(1), false);
expect(new Int64(0) == new Int32(0), true);
expect(new Int64(0) == new Int32(1), false);
expect(new Int64(0) == 0, true);
expect(new Int64(0) == 1, false);
expect(new Int64(10) == new Int64(11), false);
expect(new Int64(10) == new Int64(10), true);
expect(new Int64(10) == new Int64(9), false);
expect(new Int64(10) == new Int32(11), false);
expect(new Int64(10) == new Int32(10), true);
expect(new Int64(10) == new Int32(9), false);
expect(new Int64(10) == 11, false);
expect(new Int64(10) == 10, true);
expect(new Int64(10) == 9, false);
expect(new Int64(-10) == new Int64(-10), true);
expect(new Int64(-10) != new Int64(-10), false);
expect(new Int64(-10) == -10, true);
expect(new Int64(-10) == -9, false);
expect(largePos == largePos, true);
expect(largePos == largePosPlusOne, false);
expect(largePosPlusOne == largePos, false);
Expand Down

0 comments on commit 08fa5ba

Please sign in to comment.