| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |