Lines Matching defs:expected

113 //    static void assertEqualChars (String msg, char[] expected, char[] actual) {
114 // int len = expected.length;
117 // if (actual[i] != expected[i]) {
118 // System.out.format("Mismatch at index %d: %d instead of expected %d.\n",
119 // i, (int) actual[i], (int) expected[i]);
123 //// i, (int) actual[i], (int) expected[i]);
126 // assertTrue(msg, Arrays.equals(actual, expected));
129 static void assertEqualChars2 (String msg, char[] expected, char[] actual, byte[] bytes) {
132 int len = expected.length;
135 if (actual[i] == expected[i]) {
139 if (expected[i] == 65533) {
141 // System.out.format("REPLACE mismatch at index %d (byte %d): %d instead of expected %d.\n",
142 // i, bytes[i] & 0xff, (int) actual[i], (int) expected[i]);
144 // System.out.format("REPLACE mismatch at index %d (byte %d): %d instead of expected %d.\n",
145 // i, bytes[i] & 0xff, (int) actual[i], (int) expected[i]);
149 // System.out.format("MISMATCH at index %d (byte %d): %d instead of expected %d.\n",
150 // i, bytes[i] & 0xff, (int) actual[i], (int) expected[i]);
154 // if ((actual[i] != expected[i]) &&
155 // !((actual[i] == bytes[i]) && (expected[i] == 65533))) {
166 // static void assertEqualBytes (String msg, byte[] expected, byte[] actual) {
167 // int len = expected.length;
170 // if (actual[i] != expected[i]) {
171 // System.out.format("MISMATCH at index %d: %d instead of expected %d.\n",
172 // i, actual[i], expected[i]);
175 // assertTrue(msg, Arrays.equals(actual, expected));
178 static void assertEqualBytes2 (String msg, byte[] expected, byte[] actual, char[] chars) {
180 int len = expected.length;
183 if ((actual[i] != expected[i]) &&
185 // System.out.format("MISMATCH at index %d: %d instead of expected %d.\n",
186 // i, actual[i], expected[i]);