svoid test_formatDouble_significant2() { assertEqualsVerbose("12345", formatDouble_significant2(12345, 3)); assertEqualsVerbose("1234", formatDouble_significant2(1234.5, 3)); assertEqualsVerbose("123", formatDouble_significant2(123.45, 3)); assertEqualsVerbose("123.5", formatDouble_significant2(123.45, 4)); assertEqualsVerbose("-123.5", formatDouble_significant2(-123.45, 4)); assertEqualsVerbose("12.3", formatDouble_significant2(12.345, 3)); assertEqualsVerbose("1.23", formatDouble_significant2(1.234, 3)); assertEqualsVerbose("1.234", formatDouble_significant2(1.234, 4)); assertEqualsVerbose("0.0123", formatDouble_significant2(0.01234, 3)); assertEqualsVerbose("0", formatDouble_significant2(0, 3)); }