Index: packages/petitparser/lib/test.dart |
diff --git a/petitparser/lib/test.dart b/packages/petitparser/lib/test.dart |
similarity index 78% |
rename from petitparser/lib/test.dart |
rename to packages/petitparser/lib/test.dart |
index fb681f8287741d0b1c646f63d034920406809cbd..508b2e06c67139be20d96c21bfaec0cff2e23e64 100644 |
--- a/petitparser/lib/test.dart |
+++ b/packages/petitparser/lib/test.dart |
@@ -1,32 +1,26 @@ |
-/** |
- * This package contains matches to write tests for parsers. |
- * |
- * Examples: |
- * |
- * var json = new JsonParser(); |
- * |
- * // verifies that the input gets parsed and all input is consumed |
- * expect('{"a": 1}', accepts(new JsonParser())); |
- * |
- * // verifies that the input gets parsed to a dictionary and that all input is consumed |
- * expect('{"a": 1}', parses(new JsonParser(), {'a': 1})); |
- */ |
+/// This package contains matches to write tests for parsers. |
+/// |
+/// Examples: |
+/// |
+/// var json = new JsonParser(); |
+/// |
+/// // verifies that the input gets parsed and all input is consumed |
+/// expect('{"a": 1}', accepts(new JsonParser())); |
+/// |
+/// // verifies that the input gets parsed to a dictionary and that all input is consumed |
+/// expect('{"a": 1}', parses(new JsonParser(), {'a': 1})); |
-library test_util; |
+library petitparser.test_util; |
import 'package:matcher/matcher.dart'; |
import 'package:petitparser/petitparser.dart' hide predicate; |
-/** |
- * Returns a matcher that succeeds if the [parser] accepts the input. |
- */ |
+/// Returns a matcher that succeeds if the [parser] accepts the input. |
Matcher accept(Parser parser) { |
return parse(parser, predicate((value) => true, 'input')); |
} |
-/** |
- * Returns a matcher that succeeds if the [parser] succeeds and accepts the provided [matcher]. |
- */ |
+/// Returns a matcher that succeeds if the [parser] succeeds and accepts the provided [matcher]. |
Matcher parse(Parser parser, matcher, [int position = -1]) { |
return new _Parse(parser, wrapMatcher(matcher), position); |
} |