| OLD | NEW | 
| (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 } | 
| OLD | NEW |