Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(573)

Unified Diff: packages/petitparser/lib/test.dart

Issue 1400473008: Roll Observatory packages and add a roll script (Closed) Base URL: git@github.com:dart-lang/observatory_pub_packages.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « packages/petitparser/lib/src/smalltalk/grammar.dart ('k') | packages/petitparser/pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « packages/petitparser/lib/src/smalltalk/grammar.dart ('k') | packages/petitparser/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698