Searched refs:ans (Results 1 - 10 of 10) sorted by relevance

/openjdk7/jdk/test/java/lang/String/
H A DRegex.java32 static void ck(boolean x, boolean ans) throws Exception { argument
33 if (x != ans)
37 static void ck(String x, String ans) throws Exception { argument
38 if (!x.equals(ans))
42 static void ck(String[] x, String[] ans) throws Exception { argument
43 if (x.length != ans.length)
46 if (!x[i].equals(ans[i]))
/openjdk7/jdk/test/java/io/File/
H A DIsAbsolute.java34 private static void ck(String path, boolean ans) throws Exception { argument
37 if (x != ans)
38 throw new Exception(path + ": expected " + ans + ", got " + x);
H A DGetAbsolutePath.java36 private static void ck(String path, String ans) throws Exception { argument
39 if ((ignoreCase && p.equalsIgnoreCase(ans)) || p.equals(ans))
42 throw new Exception(path + ": expected " + ans + ", got " + p);
H A DIsHidden.java37 private static void ck(String path, boolean ans) throws Exception { argument
40 if (x != ans)
41 throw new Exception(path + ": expected " + ans + ", got " + x);
H A DCons.java90 private static void ok(String ans, String exp) { argument
91 System.err.println(nos(ans) + " <== " + exp);
94 private static void err(String ans, String exp, String got) throws Exception { argument
95 System.err.println(nos(ans) + " <-- " + exp + " ==> " + nos(got));
98 + ", should be " + nos(ans));
102 private static void ck(String ans, String exp, String got) argument
105 if ((got == ans) || ((got != null) && got.equals(ans))) ok(ans, exp);
106 else err(ans, ex
[all...]
H A DFileMethods.java34 private static void ck(String op, File got, File ans) throws Exception { argument
35 if (!got.equals(ans))
/openjdk7/jdk/test/java/io/pathNames/
H A DGeneral.java224 String ans = trimTrailingSlashes(answer);
243 System.err.println(ans + " <-- " + path + " ==> " + x);
247 if (cpath.equals(ans)) {
248 System.err.println(ans + " <== " + path);
250 System.err.println(ans + " <-- " + path + " ==> " + cpath + " MISMATCH");
253 ", should be " + ans);
268 * String ans Expected answer for the check method (above)
275 String ans, String ask, String slash)
278 check(ans, ask + slash);
280 ans
274 checkSlash(int depth, boolean create, String ans, String ask, String slash) argument
286 checkSlashes(int depth, boolean create, String ans, String ask) argument
307 checkNames(int depth, boolean create, String ans, String ask) argument
[all...]
H A DGeneralWin32.java79 String ans = y.getPath();
80 check(ans, "XyZzY0123\\FOO_bar_BAZ\\GLORPified");
81 check(ans, "xyzzy0123\\foo_bar_baz\\glorpified");
82 check(ans, "XYZZY0123\\FOO_BAR_BAZ\\GLORPIFIED");
134 String ans = exists ? df.getAbsolutePath() : d;
135 if (!ans.endsWith("\\"))
136 ans = ans + "\\";
137 checkNames(depth, false, ans, d);
/openjdk7/jdk/test/java/net/URL/
H A DTest.java161 private void check2(String s, String ans, int prop) { argument
162 if (s == null && ans == null)
164 if ((s == null) || !s.equals(ans))
/openjdk7/jdk/test/java/net/URI/
H A DTest.java239 private void check2(String s, String ans, int prop) { argument
240 if ((s == null) || !s.equals(ans))

Completed in 890 milliseconds