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

Side by Side Diff: test/backend/platform_selector/ast_test.dart

Issue 1053443002: Rename the package to "test". (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Code review changes Created 5 years, 8 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 unified diff | Download patch
« no previous file with comments | « test/backend/invoker_test.dart ('k') | test/backend/platform_selector/evaluate_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import 'package:unittest/unittest.dart'; 5 import 'package:test/test.dart';
6 import 'package:unittest/src/backend/platform_selector/parser.dart'; 6 import 'package:test/src/backend/platform_selector/parser.dart';
7 7
8 void main() { 8 void main() {
9 group("toString() for", () { 9 group("toString() for", () {
10 test("a variable is its name", () { 10 test("a variable is its name", () {
11 _expectToString("foo"); 11 _expectToString("foo");
12 _expectToString("a-b"); 12 _expectToString("a-b");
13 }); 13 });
14 14
15 group("not", () { 15 group("not", () {
16 test("doesn't parenthesize a variable", () => _expectToString("!a")); 16 test("doesn't parenthesize a variable", () => _expectToString("!a"));
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 }); 73 });
74 } 74 }
75 75
76 void _expectToString(String selector, [String result]) { 76 void _expectToString(String selector, [String result]) {
77 if (result == null) result = selector; 77 if (result == null) result = selector;
78 expect(_toString(selector), equals(result), 78 expect(_toString(selector), equals(result),
79 reason: 'Expected toString of "$selector" to be "$result".'); 79 reason: 'Expected toString of "$selector" to be "$result".');
80 } 80 }
81 81
82 String _toString(String selector) => new Parser(selector).parse().toString(); 82 String _toString(String selector) => new Parser(selector).parse().toString();
OLDNEW
« no previous file with comments | « test/backend/invoker_test.dart ('k') | test/backend/platform_selector/evaluate_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698