2008-07-02 Cameron Zwarich <cwzwarich@uwaterloo.ca>
[WebKit-https.git] / LayoutTests / fast / js / resources / number-toExponential.js
index b2698c6d3f7d9977b9c648d7e3a1be7b6d4b5b0e..ad9cc31e530a46774a9e14d232364ee9176ea146 100644 (file)
@@ -41,4 +41,10 @@ shouldBeEqualToString("posInf.toExponential()", "Infinity");
 shouldBeEqualToString("negInf.toExponential()", "-Infinity");
 shouldBeEqualToString("nan.toExponential()", "NaN");
 
+shouldBeEqualToString("(0.01).toExponential()", "1e-2");
+shouldBeEqualToString("(0.1).toExponential()", "1e-1");
+shouldBeEqualToString("(0.9).toExponential()", "9e-1");
+shouldBeEqualToString("(0.9999).toExponential()", "9.999e-1");
+shouldBeEqualToString("(0.9999).toExponential(2)", "1.00e+0");
+
 var successfullyParsed = true;