Skip to content
This repository has been archived by the owner on Jan 26, 2021. It is now read-only.

Commit

Permalink
Update test to use Dart 2.0 fixed size ints. (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
keertip authored and jakobr-google committed Jan 11, 2018
1 parent 1d0dd74 commit dd76390
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/validate_fail_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ void main() {
builder.optionalInt64 = cast('102');
}, badArgument);
expect(() {
builder.optionalInt64 = cast(-9223372036854775809);
builder.optionalInt64 = cast(-9223372036854775808);
}, badArgument);
expect(() {
builder.optionalInt64 = cast(9223372036854775808);
builder.optionalInt64 = cast(9223372036854775807);
}, badArgument);

expect(() {
Expand All @@ -62,7 +62,7 @@ void main() {
builder.optionalUint64 = cast(-1);
}, badArgument);
expect(() {
builder.optionalUint64 = cast(18446744073709551616);
builder.optionalUint64 = cast(8446744073709551616);
}, badArgument);

expect(() {
Expand All @@ -79,10 +79,10 @@ void main() {
builder.optionalSint64 = cast('106');
}, badArgument);
expect(() {
builder.optionalSint64 = cast(-9223372036854775809);
builder.optionalSint64 = cast(-9223372036854775808);
}, badArgument);
expect(() {
builder.optionalSint64 = cast(9223372036854775808);
builder.optionalSint64 = cast(9223372036854775807);
}, badArgument);

expect(() {
Expand All @@ -102,7 +102,7 @@ void main() {
builder.optionalFixed64 = cast(-1);
}, badArgument);
expect(() {
builder.optionalFixed64 = cast(18446744073709551616);
builder.optionalFixed64 = cast(8446744073709551616);
}, badArgument);

expect(() {
Expand All @@ -119,10 +119,10 @@ void main() {
builder.optionalSfixed64 = cast('110');
}, badArgument);
expect(() {
builder.optionalSfixed64 = cast(-9223372036854775809);
builder.optionalSfixed64 = cast(-9223372036854775808);
}, badArgument);
expect(() {
builder.optionalSfixed64 = cast(9223372036854775808);
builder.optionalSfixed64 = cast(9223372036854775807);
}, badArgument);

expect(() {
Expand Down

0 comments on commit dd76390

Please sign in to comment.