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

Unified Diff: dart/frog/tests/leg/src/ConstantFoldingTest.dart

Issue 9689045: Library privacy. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 9 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 | « dart/frog/tests/leg/src/ArrayStaticInterceptTest.dart ('k') | dart/frog/tests/leg/src/LiteralListTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/frog/tests/leg/src/ConstantFoldingTest.dart
diff --git a/dart/frog/tests/leg/src/ConstantFoldingTest.dart b/dart/frog/tests/leg/src/ConstantFoldingTest.dart
index 6828d8eed77419e854ab78b4e4b7c4d11ba34b90..729d7f6cb65d75ec797f2893ea962a910268259c 100644
--- a/dart/frog/tests/leg/src/ConstantFoldingTest.dart
+++ b/dart/frog/tests/leg/src/ConstantFoldingTest.dart
@@ -42,17 +42,18 @@ void main() {
void compileAndTest(String code, String entry, RegExp regexp) {
String generated = compile(code, entry);
- Expect.isTrue(regexp.hasMatch(generated));
+ Expect.isTrue(regexp.hasMatch(generated),
+ '"$generated" does not match /$regexp/');
}
main() {
compileAndTest(
- NUMBER_FOLDING, 'main', const RegExp(@"print\$1\(\(7\)\)"));
+ NUMBER_FOLDING, 'main', const RegExp(@"print\(\(7\)\)"));
compileAndTest(
- NEGATIVE_NUMBER_FOLDING, 'main', const RegExp(@"print\$1\(\(1\)\)"));
+ NEGATIVE_NUMBER_FOLDING, 'main', const RegExp(@"print\(\(1\)\)"));
String generated = compile(NULL_EQUALS_FOLDING, 'foo');
- RegExp regexp = const RegExp(@'eqNull\$1\(a\)');
+ RegExp regexp = const RegExp(@'eqNull\(a\)');
Expect.isTrue(regexp.hasMatch(generated));
regexp = const RegExp(@'\(?void 0\)? === b');
« no previous file with comments | « dart/frog/tests/leg/src/ArrayStaticInterceptTest.dart ('k') | dart/frog/tests/leg/src/LiteralListTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698