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

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

Issue 11267018: Make getKeys, getValues getters (keys, values). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update status files with co19 issue number. Created 8 years, 1 month 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/date_time_format_test_core.dart ('k') | pkg/unittest/core_matchers.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 #import('../../../pkg/unittest/unittest.dart');
10 #import('../lib/number_format.dart'); 10 #import('../lib/number_format.dart');
(...skipping 23 matching lines...) Expand all
34 "-∞": -1/0}; 34 "-∞": -1/0};
35 35
36 main() { 36 main() {
37 test('Basic number printing', () { 37 test('Basic number printing', () {
38 var number = new NumberFormat(); 38 var number = new NumberFormat();
39 expect(number.format(3.14),"3.14"); 39 expect(number.format(3.14),"3.14");
40 }); 40 });
41 41
42 test('Simple set of numbers', () { 42 test('Simple set of numbers', () {
43 var number = new NumberFormat(); 43 var number = new NumberFormat();
44 for (var x in testNumbers.getKeys()) { 44 for (var x in testNumbers.keys) {
45 var formatted = number.format(testNumbers[x]); 45 var formatted = number.format(testNumbers[x]);
46 expect(formatted, x); 46 expect(formatted, x);
47 } 47 }
48 }); 48 });
49 } 49 }
OLDNEW
« no previous file with comments | « pkg/intl/test/date_time_format_test_core.dart ('k') | pkg/unittest/core_matchers.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698