Lines Matching refs:fs
47 private static void test(String fs, String exp, Object ... args) {
49 f.format(fs, args);
50 ck(fs, exp, f.toString());
53 f.format("foo " + fs + " bar", args);
54 ck(fs, "foo " + exp + " bar", f.toString());
57 private static void test(Locale l, String fs, String exp, Object ... args)
60 f.format(fs, args);
61 ck(fs, exp, f.toString());
64 f.format("foo " + fs + " bar", args);
65 ck(fs, "foo " + exp + " bar", f.toString());
68 private static void test(String fs, Object ... args) {
70 f.format(fs, args);
71 ck(fs, "fail", f.toString());
74 private static void test(String fs) {
76 f.format(fs, "fail");
77 ck(fs, "fail", f.toString());
80 private static void testSysOut(String fs, String exp, Object ... args) {
87 System.out.format(Locale.US, fs, args);
95 fail(fs, exp, got);
96 ck(fs, exp, got);
100 fail(fs, ex.getClass());
102 fail(fs, ex.getClass());
110 fail(fs, ex.getClass());
115 private static void tryCatch(String fs, Class<?> ex) {
118 test(fs);
124 fail(fs, ex);
129 private static void tryCatch(String fs, Class<?> ex, Object ... args) {
132 test(fs, args);
138 fail(fs, ex);