Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Dart 2 compatibility #6

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion example/demo.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ library demo;
import 'demolib.dart';
import 'package:propcheck/propcheck.dart';
import 'package:enumerators/combinators.dart' as c;
import 'package:unittest/unittest.dart' hide equals;
import 'package:test/test.dart' hide equals;

/* --- the properties to test --- */

Expand Down
2 changes: 1 addition & 1 deletion example/mirrors_demo.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ library mirrors_demo;

import 'demolib.dart';
import 'package:propcheck/propcheck_mirrors.dart';
import 'package:unittest/unittest.dart' hide equals;
import 'package:test/test.dart' hide equals;

/* --- the properties to test --- */

Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ dependencies:
enumerators: '>=0.6.0 <0.7.0'
dev_dependencies:
collection: '>=1.4.0 <1.15.0'
unittest: '>=0.9.0 <0.10.0'
test: '>=0.9.0 <=1.3.0'
2 changes: 1 addition & 1 deletion test/mirrors_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import 'package:propcheck/propcheck_mirrors.dart';
import 'package:enumerators/combinators.dart' as c;
import 'package:enumerators/enumerators.dart' as e;
import 'package:unittest/unittest.dart';
import 'package:test/test.dart';

bool boolArgument(bool x) => true;
bool intArgument(int x) => true;
Expand Down
4 changes: 2 additions & 2 deletions test/quickcheck_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import 'package:propcheck/propcheck.dart';
import 'package:enumerators/combinators.dart' as c;
import 'package:enumerators/enumerators.dart' as e;
import 'package:unittest/unittest.dart';
import 'package:test/test.dart';

void quickCheckPerformsCheck() {
bool called = false;
Expand All @@ -23,7 +23,7 @@ void falseTriggersException() {
return false;
}
expect(() => new QuickCheck(quiet: true).check(forall(c.ints, test)),
throwsA(new isInstanceOf<String>()));
throwsA(const TypeMatcher<String>()));
}

void quickCheckHonorsMaxSize() {
Expand Down
4 changes: 2 additions & 2 deletions test/smallcheck_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import 'package:propcheck/propcheck.dart';
import 'package:enumerators/combinators.dart' as c;
import 'package:unittest/unittest.dart';
import 'package:test/test.dart';

void smallCheckPerformsCheck() {
bool called = false;
Expand All @@ -22,7 +22,7 @@ void falseTriggersException() {
return false;
}
expect(() => new SmallCheck(quiet: true).check(forall(c.ints, test)),
throwsA(new isInstanceOf<String>()));
throwsA(const TypeMatcher<String>()));
}

void smallCheckIsExhaustive() {
Expand Down