/openjdk7/jdk/test/java/lang/Math/ |
H A D | Log10Tests.java | 44 static int testLog10Case(double input, double expected) { argument 48 Math.log10(input), expected); 51 StrictMath.log10(input), expected); 106 double expected = StrictMath.log(input)/LN_10; 107 if( ! FpUtils.isFinite(expected)) 112 if( Math.abs(((result=Math.log10(input)) - expected)/Math.ulp(expected)) > 3) { 117 "\tlog(input)/log(10) = " + expected); 120 if( Math.abs(((result=StrictMath.log10(input)) - expected)/Math.ulp(expected)) > [all...] |
H A D | Rint.java | 36 static int testRintCase(double input, double expected) { argument 39 failures += Tests.test("Math.rint", input, Math.rint(input), expected); 40 failures += Tests.test("Math.rint", -input, Math.rint(-input), -expected); 42 input, StrictMath.rint(input), expected); 44 StrictMath.rint(-input), -expected);
|
/openjdk7/jdk/test/java/lang/reflect/Modifier/ |
H A D | toStringTest.java | 34 static void testString(int test, String expected) { argument 35 if(!Modifier.toString(test).equals(expected))
|
/openjdk7/jdk/test/java/math/BigDecimal/ |
H A D | StringConstructor.java | 107 BigDecimal expected = new BigDecimal("4e5"); 112 if (! expected.equals(tmp) || tmp.precision() != 1) { 142 private static void testString(String s, BigDecimal expected) { argument 143 testString0(s, expected); 144 testString0(switchZero(s), expected); 147 private static void testString0(String s, BigDecimal expected) { argument 148 if (!expected.equals(new BigDecimal(s))) 149 throw new RuntimeException(s + " is not equal to " + expected);
|
H A D | ZeroScalingTests.java | 65 BigDecimal expected = new BigDecimal(BigInteger.ZERO, 69 if(! (result=zero1.add(zero2)).equals(expected) ) { 71 System.err.println("For classic exact add, expected scale of " + 72 expected.scale() + "; got " + 76 if(! (result=zero1.add(zero2, MathContext.UNLIMITED)).equals(expected) ) { 79 " expected scale of " + 80 expected.scale() + "; got " + 84 if(! (result=zero1.add(zero2, longEnough)).equals(expected) ) { 87 " expected scale of " + 88 expected [all...] |
/openjdk7/jdk/test/java/nio/charset/RemovingSunIO/ |
H A D | TestUnmappableForLength.java | 43 static void testDecode(String csName, byte[] ba, int expected) argument 51 if (cr.isUnmappable() && cr.length() != expected) {
|
/openjdk7/langtools/test/tools/javac/varargs/ |
H A D | Varargs1.java | 53 static void check(int expected, int actual) { argument 54 if (actual != expected) throw new AssertionError(actual);
|
/openjdk7/jdk/test/java/util/Objects/ |
H A D | BasicObjectsTest.java | 53 boolean expected = (i == j); 57 if (result != expected) { 60 a, b, result, expected); 82 boolean expected = (i == j); 86 if (result != expected) { 89 a, b, result, expected); 142 int expected = Integer.compare(i, j); 144 errors += compareTest(a, b, expected); 150 private static int compareTest(String a, String b, int expected) { argument 153 if (Integer.signum(result) != Integer.signum(expected)) { [all...] |
/openjdk7/jdk/test/java/lang/StringBuffer/ |
H A D | Supplementary.java | 158 // Additional input data & expected result for test3() 230 int expected = Character.codePointCount(sb, j, length); 231 check(result != expected, "codePointCount(input["+i+"], "+j+", "+length+")", 232 result, expected); 236 int expected = Character.codePointCount(sb, 0, j); 237 check(result != expected, "codePointCount(input["+i+"], 0, "+j+")", 238 result, expected); 268 int expected = j; 272 expected--; 275 check(result != expected, 311 testCodePoint(boolean isAt, StringBuffer sb, int index, int expected) argument 378 check(boolean err, String s, int got, int expected) argument 388 check(boolean err, String s, StringBuffer got, String expected) argument [all...] |
/openjdk7/jdk/test/java/lang/StringBuilder/ |
H A D | Supplementary.java | 158 // Additional input data & expected result for test3() 230 int expected = Character.codePointCount(sb, j, length); 231 check(result != expected, "codePointCount(input["+i+"], "+j+", "+length+")", 232 result, expected); 236 int expected = Character.codePointCount(sb, 0, j); 237 check(result != expected, "codePointCount(input["+i+"], 0, "+j+")", 238 result, expected); 268 int expected = j; 272 expected--; 275 check(result != expected, 311 testCodePoint(boolean isAt, StringBuilder sb, int index, int expected) argument 378 check(boolean err, String s, int got, int expected) argument 388 check(boolean err, String s, StringBuilder got, String expected) argument [all...] |
/openjdk7/jdk/test/java/awt/FontClass/SurrogateTest/ |
H A D | SupplementaryCanDisplayUpToTest.java | 34 // Lists consisting of a font name, test text, and its expected 73 int expected = Integer.parseInt(data[2]); 76 if (result != expected) { 82 if (result != expected) { 89 if (result != expected) {
|
/openjdk7/jdk/test/java/beans/Introspector/ |
H A D | Test6447751.java | 47 private static void test(Class<?> type, Class<?> expected) { argument 55 if (actual != expected) { 58 if (expected != null) { 59 sb.append("expected ").append(expected);
|
/openjdk7/jdk/test/java/io/PushbackInputStream/ |
H A D | Skip.java | 33 private static void dotest(PushbackInputStream in, int expected) argument 56 System.err.println("Expected " + expected + " got " + got); 57 if (expected != got) { 58 throw new Exception("Expected " + expected + " got " + got);
|
/openjdk7/jdk/test/java/io/readBytes/ |
H A D | ReadBytesBounds.java | 84 static void testRead(int off, int len, boolean expected) throws Throwable { argument 85 System.err.printf("off=%d len=%d expected=%b%n", off, len, expected); 95 if (result != expected) { 97 (String.format("Unexpected result off=%d len=%d expected=%b", 98 off, len, expected));
|
/openjdk7/jdk/test/java/nio/channels/Channels/ |
H A D | ShortWrite.java | 69 // and check that the expected number of bytes is written 70 int expected = 0; 75 expected += len; 77 System.out.format("Bytes written: %d, expected: %d\n", bytesWritten, 78 expected); 79 if (bytesWritten != expected)
|
/openjdk7/jdk/test/java/nio/channels/DatagramChannel/ |
H A D | ChangingAddress.java | 37 InetAddress expected = ds.getLocalAddress(); 40 if ((expected.isAnyLocalAddress() != actual.isAnyLocalAddress()) && 41 !expected.equals(actual)) 43 throw new RuntimeException("Expected: " + expected + ", actual: " + actual);
|
/openjdk7/jdk/test/javax/swing/plaf/basic/BasicSplitPaneUI/ |
H A D | Test6657026.java | 74 private static void test(JSplitPane pane, String action, int expected) { argument 75 ActionEvent event = new ActionEvent(pane, expected, action); 78 if (actual != expected) { 79 throw new Error(actual + ", but expected " + expected);
|
/openjdk7/langtools/test/tools/javac/unit/util/convert/ |
H A D | EnclosingCandidates.java | 41 void test(String name, String... expected) { argument 43 if (!result.isEmpty() || expected.length != 0) { 44 Name[] expectedNames = new Name[expected.length]; 46 for (String s : expected)
|
/openjdk7/jdk/test/java/net/Authenticator/ |
H A D | B4722333.java | 40 static String [][] expected = { field in class:B4722333 137 if (f != expected.length) { 138 except ("Authenticator was called "+f+" times. Should be " + expected.length); 163 if (!scheme.equals (expected [count][0])) { 164 B4722333.except ("wrong scheme received, " + scheme + " expected " + expected [count][0]); 166 if (!prompt.equals (expected [count][1])) { 167 B4722333.except ("wrong realm received, " + prompt + " expected " + expected [count][1]);
|
/openjdk7/jdk/test/sun/rmi/rmic/minimizeWrapperInstances/ |
H A D | Test.java | 63 Object[] expected; field in class:Test.ArgCheckingRemoteRef 64 ArgCheckingRemoteRef(Object... expected) { argument 65 this.expected = expected; 68 System.err.print("expected argument values: "); 69 printValues(expected); 72 if (args.length != expected.length) { 76 if (args[i] != expected[i]) { 77 throw new Error("args[" + i + "] not expected value");
|
/openjdk7/jdk/src/share/classes/com/sun/jmx/snmp/IPAcl/ |
H A D | ParseException.java | 102 * values) that is expected at this point of the parse. 127 String expected = ""; 134 expected += tokenImage[expectedTokenSequences[i][j]] + " "; 137 expected += "..."; 139 expected += eol + " "; 158 retval += expected;
|
/openjdk7/jdk/src/share/classes/com/sun/tools/example/debug/expr/ |
H A D | ParseException.java | 112 * values) that is expected at this point of the parse. 138 String expected = ""; 145 expected += tokenImage[expectedTokenSequence[j]] + " "; 148 expected += "..."; 150 expected += eol + " "; 171 retval += expected;
|
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/xsom/impl/scd/ |
H A D | ParseException.java | 103 * values) that is expected at this point of the parse. 128 StringBuffer expected = new StringBuffer(); 135 expected.append(tokenImage.get(expectedTokenSequences[i][j])).append(" "); 138 expected.append("..."); 140 expected.append(eol).append(" "); 160 retval += expected.toString();
|
/openjdk7/jdk/test/sun/security/x509/X509CRLImpl/ |
H A D | OrderAndDup.java | 75 static void checkData(X509CRLImpl c, byte[] data, BigInteger[] expected) argument 77 if (c.getRevokedCertificates().size() != expected.length) { 86 if (d2.length != expected.length) { 92 if (!bi.equals(expected[i])) { 94 + ", should be " + expected[i]);
|
/openjdk7/jdk/test/sun/nio/cs/ |
H A D | TestISO2022JPSubBytes.java | 43 static byte[][] expected = { {0x1b, 0x24, 0x42, 0x21, 0x7b, field in class:TestISO2022JPSubBytes 64 test(enc, in[0], expected[0]); 67 test(enc, in[1], expected[1]); 71 test(enc, in[2], expected[2]); 74 test(enc, in[3], expected[3]);
|