Switched test harness from calling avian.FormatString to use java.lang.String.format() instead

This commit is contained in:
BCG 2015-03-17 12:31:48 -04:00 committed by bcg
parent a8bed52097
commit 5bd8d2759e

View File

@ -8,14 +8,6 @@
There is NO WARRANTY for this software. See license.txt for There is NO WARRANTY for this software. See license.txt for
details. */ details. */
import avian.FormatString;
import java.net.URL;
import java.io.IOException;
import java.io.InputStream;
import java.io.StringWriter;
import java.io.BufferedReader;
import java.io.InputStreamReader;
/* /*
* @author bcg * @author bcg
*/ */
@ -36,7 +28,7 @@ public class FormatStrings {
} }
private void _testFormat(String expected, String format, Object... args) { private void _testFormat(String expected, String format, Object... args) {
String actual = FormatString.compile(format).format(args); String actual = String.format(format, args);
ensureEquals(expected, actual); ensureEquals(expected, actual);
System.err.println("Expected: " + expected + ", Actual: " + actual); System.err.println("Expected: " + expected + ", Actual: " + actual);
} }