Index: test/number_format_test.dart |
diff --git a/test/number_format_test.dart b/test/number_format_test.dart |
index 1ff898b2c1a01ac0c1037bd5ea41d026773ece6c..b6bc33a0be834f32b68323758c6ca87b48dff05a 100644 |
--- a/test/number_format_test.dart |
+++ b/test/number_format_test.dart |
@@ -143,6 +143,14 @@ main() { |
} |
}); |
+ test('Percent with no decimals and no integer part', () { |
+ var number = new NumberFormat("#%"); |
+ var formatted = number.format(0.12); |
+ expect(formatted, "12%"); |
+ var readBack = number.parse(formatted); |
+ expect(0.12, readBack); |
+ }); |
+ |
// We can't do these in the normal tests because those also format the |
// numbers and we're reading them in a format where they won't print |
// back the same way. |