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

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

Issue 22284003: pkg: analysis aided cleanup (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: nits Created 7 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
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.dart';
11 import 'package:intl/number_symbols_data.dart'; 10 import 'package:intl/number_symbols_data.dart';
12 import 'package:intl/intl.dart'; 11 import 'package:intl/intl.dart';
13 import 'number_test_data.dart'; 12 import 'number_test_data.dart';
14 import 'dart:math'; 13 import 'dart:math';
15 14
16 /** 15 /**
17 * Tests the Numeric formatting library in dart. 16 * Tests the Numeric formatting library in dart.
18 */ 17 */
19 var testNumbers = { 18 var testNumbers = {
20 "0.001": 0.001, 19 "0.001": 0.001,
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 }); 88 });
90 89
91 test('Exponential form', () { 90 test('Exponential form', () {
92 var number = new NumberFormat("#.###E0"); 91 var number = new NumberFormat("#.###E0");
93 for (var x in testExponential.keys) { 92 for (var x in testExponential.keys) {
94 var formatted = number.format(testExponential[x]); 93 var formatted = number.format(testExponential[x]);
95 expect(formatted, x); 94 expect(formatted, x);
96 } 95 }
97 }); 96 });
98 } 97 }
OLDNEW
« no previous file with comments | « pkg/intl/test/message_extraction/sample_with_messages.dart ('k') | pkg/intl/tool/generate_locale_data_files.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698