assertEquals("0.01", JsSystem.formatNumber(JsObject.ID_TO_FIXED, 0.012345, 2));
assertEquals("0.0", JsSystem.formatNumber(JsObject.ID_TO_FIXED, 0.000012345, 1));
}
public Test suite() {
TestSuite suite = new TestSuite();
suite.addTest(new TextUtilTest("testExp") {
public void runTest() {
testExp();
}
});
suite.addTest(new TextUtilTest("testLn") {
public void runTest() {
testLn();
}
});
suite.addTest(new TextUtilTest("testAvg") {
public void runTest() {
testAvg();
}
});
suite.addTest(new TextUtilTest("testFormatNumber") {
public void runTest() {
testFormatNumber();
}
});
return suite;