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

Side by Side Diff: pkg/intl/test/number_format_test.dart

Issue 10917275: Update unittest to new package layout. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « pkg/intl/test/intl_test.dart ('k') | pkg/logging/test/logging_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 /** 1 /**
2 * Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2 * Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
3 * for details. All rights reserved. Use of this source code is governed by a 3 * for details. All rights reserved. Use of this source code is governed by a
4 * BSD-style license that can be found in the LICENSE file. 4 * BSD-style license that can be found in the LICENSE file.
5 */ 5 */
6 6
7 #library('number_format_test'); 7 #library('number_format_test');
8 8
9 #import('../../../pkg/unittest/unittest.dart'); 9 // TODO(rnystrom): Use "package:" URL (#4968).
10 #import('../../../pkg/unittest/lib/unittest.dart');
10 #import('../number_format.dart'); 11 #import('../number_format.dart');
11 #import('../intl.dart'); 12 #import('../intl.dart');
12 13
13 /** 14 /**
14 * Tests the Numeric formatting library in dart. 15 * Tests the Numeric formatting library in dart.
15 */ 16 */
16 var testNumbers = const { 17 var testNumbers = const {
17 "0.001": 0.001, 18 "0.001": 0.001,
18 "0.01": 0.01, 19 "0.01": 0.01,
19 "0.1": 0.1, 20 "0.1": 0.1,
(...skipping 20 matching lines...) Expand all
40 }); 41 });
41 42
42 test('Simple set of numbers', () { 43 test('Simple set of numbers', () {
43 var number = new NumberFormat(); 44 var number = new NumberFormat();
44 for (var x in testNumbers.getKeys()) { 45 for (var x in testNumbers.getKeys()) {
45 var formatted = number.format(testNumbers[x]); 46 var formatted = number.format(testNumbers[x]);
46 expect(formatted, x); 47 expect(formatted, x);
47 } 48 }
48 }); 49 });
49 } 50 }
OLDNEW
« no previous file with comments | « pkg/intl/test/intl_test.dart ('k') | pkg/logging/test/logging_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698