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

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

Issue 10857038: Add library tag to number_format_test (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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 | « no previous file | no next file » | 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');
8
7 #import('../../../pkg/unittest/unittest.dart'); 9 #import('../../../pkg/unittest/unittest.dart');
8 #import('../number_format.dart'); 10 #import('../number_format.dart');
9 #import('../intl.dart'); 11 #import('../intl.dart');
10 12
11 /** 13 /**
12 * Tests the Numeric formatting library in dart. 14 * Tests the Numeric formatting library in dart.
13 */ 15 */
14 var testNumbers = const { 16 var testNumbers = const {
15 "0.001": 0.001, 17 "0.001": 0.001,
16 "0.01": 0.01, 18 "0.01": 0.01,
(...skipping 21 matching lines...) Expand all
38 }); 40 });
39 41
40 test('Simple set of numbers', () { 42 test('Simple set of numbers', () {
41 var number = new NumberFormat(); 43 var number = new NumberFormat();
42 for (var x in testNumbers.getKeys()) { 44 for (var x in testNumbers.getKeys()) {
43 var formatted = number.format(testNumbers[x]); 45 var formatted = number.format(testNumbers[x]);
44 expect(formatted, x); 46 expect(formatted, x);
45 } 47 }
46 }); 48 });
47 } 49 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698