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

Side by Side Diff: dart/tests/try/poi/source_update_test.dart

Issue 799403005: Avoid repeating common parts of ProgramResults. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Merged with r42384. Created 6 years 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
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.
4
5 /// Test [source_update.dart].
6 library trydart.source_update_test;
7
8 import 'package:expect/expect.dart' show
9 Expect;
10
11 import 'source_update.dart' show
12 expandUpdates;
13
14 main() {
15 Expect.listEquals(
16 ["head v1 tail", "head v2 tail"],
17 expandUpdates(["head ", ["v1", "v2"], " tail"]));
18
19 Expect.listEquals(
20 ["head v1 tail v2", "head v2 tail v1"],
21 expandUpdates(["head ", ["v1", "v2"], " tail ", ["v2", "v1"]]));
22
23 Expect.throws(() {
24 expandUpdates(["head ", ["v1", "v2"], " tail ", ["v1"]]);
25 });
26
27 Expect.throws(() {
28 expandUpdates(["head ", ["v1", "v2"], " tail ", ["v1", "v2", "v3"]]);
29 });
30 }
OLDNEW
« no previous file with comments | « dart/tests/try/poi/source_update.dart ('k') | dart/tests/try/web/incremental_compilation_update_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698