Index: pkg/unittest/test/single_correct_test.dart |
diff --git a/pkg/unittest/test/single_correct_test.dart b/pkg/unittest/test/single_correct_test.dart |
index f10ff0cfe573565d874a39790036d8ae18576f3a..f3f1daf570ffbb0ec10d71de7735fa9fc2f98cd2 100644 |
--- a/pkg/unittest/test/single_correct_test.dart |
+++ b/pkg/unittest/test/single_correct_test.dart |
@@ -2,19 +2,18 @@ |
// for details. All rights reserved. Use of this source code is governed by a |
// BSD-style license that can be found in the LICENSE file. |
-library unittestTest; |
- |
-import 'dart:async'; |
-import 'dart:isolate'; |
+library unittest.single_correct_test; |
import 'package:unittest/unittest.dart'; |
-part 'utils.dart'; |
+import 'package:metatest/metatest.dart'; |
-var testName = 'single correct test'; |
+void main() => initTests(_test); |
-var testFunction = (_) { |
- test(testName, () => expect(2 + 3, equals(5))); |
-}; |
+void _test(message) { |
+ initMetatest(message); |
-var expected = buildStatusString(1, 0, 0, testName); |
+ expectSingleTest('single correct test', 'pass', '', () { |
+ test('test', () => expect(2 + 3, equals(5))); |
+ }); |
+} |