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

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

Issue 143453011: pkg/intl: dartfmt (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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/message_extraction/verify_messages.dart ('k') | 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; 7 library number_format_test;
8 8
9 import 'package:unittest/unittest.dart'; 9 import 'package:unittest/unittest.dart';
10 import 'package:intl/number_symbols_data.dart'; 10 import 'package:intl/number_symbols_data.dart';
11 import 'package:intl/intl.dart'; 11 import 'package:intl/intl.dart';
12 import 'number_test_data.dart'; 12 import 'number_test_data.dart';
13 import 'dart:math'; 13 import 'dart:math';
14 14
15 /** 15 /**
16 * Tests the Numeric formatting library in dart. 16 * Tests the Numeric formatting library in dart.
17 */ 17 */
18 var testNumbers = { 18 var testNumbers = {
19 "0.001": 0.001, 19 "0.001": 0.001,
20 "0.01": 0.01, 20 "0.01": 0.01,
21 "0.1": 0.1, 21 "0.1": 0.1,
22 "1": 1, 22 "1": 1,
23 "2": 2.0, 23 "2": 2.0,
24 "10": 10, 24 "10": 10,
25 "100": 100, 25 "100": 100,
26 "1,000": 1000, 26 "1,000": 1000,
27 "2,000,000,000,000": 2000000000000, 27 "2,000,000,000,000": 2000000000000,
28 "0.123": 0.123, 28 "0.123": 0.123,
29 "1,234": 1234.0, 29 "1,234": 1234.0,
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 } 87 }
88 }); 88 });
89 89
90 test('Exponential form', () { 90 test('Exponential form', () {
91 var number = new NumberFormat("#.###E0"); 91 var number = new NumberFormat("#.###E0");
92 for (var x in testExponential.keys) { 92 for (var x in testExponential.keys) {
93 var formatted = number.format(testExponential[x]); 93 var formatted = number.format(testExponential[x]);
94 expect(formatted, x); 94 expect(formatted, x);
95 } 95 }
96 }); 96 });
97 } 97 }
OLDNEW
« no previous file with comments | « pkg/intl/test/message_extraction/verify_messages.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698