Lines Matching refs:check
51 static void check(boolean condition, String msg) {
58 static void check(boolean condition) {
59 check(condition, "Assertion failure");
63 check(x.isEmpty());
64 check(x.size() == 0);
65 check(x.indexOf("foo") == -1);
66 check(x.lastIndexOf("foo") == -1);
67 check(x.toArray().length == 0);
68 check(x.toArray().getClass() == Object[].class);
72 check(! x.isEmpty());
73 check(x.indexOf(new String("foo")) == 0);
74 check(x.lastIndexOf(new String("foo")) == x.size()-1);
75 check(x.toArray().length == x.size());
76 check(x.toArray().getClass() == Object[].class);
78 check(sa.getClass() == String[].class);
79 check(sa[0].equals("foo"));
80 check(sa[sa.length-1].equals("foo"));
81 check(x.get(x.size()/2).equals("foo"));
92 check(foos.size() == 42);