Searched defs:expected (Results 76 - 100 of 221) sorted by relevance

123456789

/openjdk7/jdk/test/java/lang/Math/
H A DLog10Tests.java44 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 DLog1pTests.java177 double expected) {
178 return testLog1pCaseWithUlpDiff(input, expected, 1);
182 double expected,
187 expected, ulps);
190 expected, ulps);
176 testLog1pCase(double input, double expected) argument
181 testLog1pCaseWithUlpDiff(double input, double expected, double ulps) argument
/openjdk7/jdk/test/java/lang/StrictMath/
H A DHyperbolicTests.java46 static int testSinhCase(double input, double expected) { argument
48 StrictMath.sinh(input), expected);
51 static int testCoshCase(double input, double expected) { argument
53 StrictMath.cosh(input), expected);
56 static int testTanhCase(double input, double expected) { argument
58 StrictMath.tanh(input), expected);
/openjdk7/jdk/test/java/math/BigDecimal/
H A DIntegralDivisionTests.java61 System.err.println("expected = " + testCase[2] + " scale = " + testCase[2].scale());
149 System.err.println("expected = " + quotient + " scale = " + quotient.scale());
161 System.err.println("expected = " + quotient + " scale = " + quotient.scale());
183 BigDecimal expected,
187 failures += divideContextTest(dividend, divisor, expected, mc);
188 failures += divideContextTest(dividend.negate(), divisor.negate(), expected, mc);
190 if (expected != null) {
191 failures += divideContextTest(dividend.negate(), divisor, expected.negate(), mc);
192 failures += divideContextTest(dividend, divisor.negate(), expected.negate(), mc);
201 BigDecimal expected,
181 divideContextTests(BigDecimal dividend, BigDecimal divisor, BigDecimal expected, MathContext mc) argument
199 divideContextTest(BigDecimal dividend, BigDecimal divisor, BigDecimal expected, MathContext mc) argument
[all...]
H A DStringConstructor.java107 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);
/openjdk7/jdk/test/java/nio/Buffer/
H A DOrder.java38 static void ck(ByteOrder ord, ByteOrder expected) { argument
39 if (ord != expected)
41 + ", expected " + expected);
/openjdk7/jdk/test/java/nio/charset/coders/
H A DIsLegalReplacement.java62 static void test(String csn, byte[] repl, boolean expected) argument
67 if (enc.isLegalReplacement(repl) == expected) {
70 out.print("Wrong: Expected " + expected);
/openjdk7/jdk/test/java/nio/file/attribute/AclFileAttributeView/
H A DBasic.java78 throw new RuntimeException("Entry 0 is not expected");
96 throw new RuntimeException("Entry 0 is not expected");
108 static void assertEquals(List<AclEntry> actual, List<AclEntry> expected) { argument
109 if (!actual.equals(expected)) {
111 System.err.format("Expected: %s\n", expected);
112 throw new RuntimeException("ACL not expected");
/openjdk7/jdk/test/java/nio/file/attribute/FileTime/
H A DBasic.java114 throw new RuntimeException("NullPointerException expected");
121 throw new RuntimeException("NullPointerException expected");
125 static void cmp(long v1, TimeUnit u1, long v2, TimeUnit u2, int expected) { argument
127 if (result != expected)
151 long expected = u.convert(v, unit);
152 if (result != expected) {
158 static void ts(long v, TimeUnit unit, String expected) { argument
160 if (!result.equals(expected)) {
162 System.err.format("Expected: %s\n", expected);
/openjdk7/jdk/test/sun/security/rsa/
H A DInvalidBitString.java122 String title, boolean expected) throws Exception {
123 System.out.print("Checking " + title + ": expected: " +
124 (expected ? " verified" : "NOT verified"));
135 return actual == expected;
121 test(Certificate target, Certificate signer, String title, boolean expected) argument
/openjdk7/jdk/test/sun/security/tools/jarsigner/
H A DTimestampCheck.java279 * @param expected if this command should succeed
281 static void jarsigner(String cmd, int path, boolean expected) argument
293 if (expected && result != 0 || !expected && result == 0) {
/openjdk7/jdk/test/sun/util/calendar/
H A DBug6653944.java59 private static void compare(int got, int expected) { argument
60 if (got != expected) {
61 System.err.println("got " + got + ", expected " + expected);
66 private static void compare(Calendar got, Calendar expected) { argument
67 if (!got.equals(expected)) {
68 System.err.println("got " + got + ", expected " + expected);
/openjdk7/jdk/src/share/instrument/
H A DReentrancy.c60 const void * expected);
91 const void * expected) {
102 jplis_assert(test == expected);
89 assertTLSValue( jvmtiEnv * jvmtienv, jthread thread, const void * expected) argument
/openjdk7/jdk/test/java/util/Objects/
H A DBasicObjectsTest.java53 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/javax/crypto/spec/DESKeySpec/
H A DCheckParity.java61 byte [] expected, KeySpec ks) throws Exception {
71 if (!Arrays.equals(expected, encoded)) {
72 throw new Exception("encoded key is not the expected key");
60 check(String alg, byte [] key, byte [] expected, KeySpec ks) argument
/openjdk7/jdk/test/javax/management/mxbean/
H A DMXBeanAnnotationTest.java83 private static boolean checkMXBean(MBeanInfo mbi, boolean expected, argument
88 if (is == expected)
91 failure = "MBean should " + (expected ? "" : "not ") +
/openjdk7/jdk/test/javax/management/query/
H A DCustomQueryTest.java109 private static void assertEquals(Object expected, Object actual) argument
111 if (!expected.equals(actual)) {
112 String failure = "FAILED: expected " + expected + ", got " + actual;
/openjdk7/jdk/test/javax/xml/jaxp/PrecisionDecimalDV/
H A DXPrecisionDecimalToString.java91 private static void test(String ival, String fval, int sign, int pvalue, String expected) { argument
97 if (!expected.equals(canonical)) {
98 throw new Error("expected: "+expected+" got: "+ canonical);
/openjdk7/jdk/test/sample/mergesort/
H A DMergeSortTest.java95 private void assertEqual(int[] expected, int[] array) { argument
96 if (!Arrays.equals(expected, array)) {
/openjdk7/langtools/test/tools/javac/
H A DT6238612.java67 error("returned array is too small; expected: " + list.size() + ", found: " + result.length);
83 void check(String[] array, int i, String expected) { argument
84 if (!equal(array[i], expected))
85 error("element " + i + " incorrect; expected: " + str(expected) + ", found: " + str(array[i]));
H A DT6993301.java99 private <T> void assertEquals(T expected, T actual) { argument
100 if (expected == null ? actual == null : expected.equals(actual))
102 throw new AssertionError("expected: " + expected + ", actual: " + actual);
/openjdk7/langtools/test/tools/javac/annotations/pos/
H A DPrimitives.java51 static void check(Object actual, Object expected) { argument
52 if (actual != expected)
53 throw new Error("expected: " + expected + "; actual = " + actual);
/openjdk7/langtools/test/tools/javac/processing/environment/round/
H A DTestContext.java74 <T> void check(T actual, T expected) { argument
75 // messager.printMessage(NOTE, "expect: " + expected);
78 if (actual != expected) {
80 "round " + round + " unexpected value for " + expected.getClass().getName() + ": " + actual);
/openjdk7/langtools/test/tools/javac/util/
H A DT6597678.java94 <T> void checkEqual(String label, T actual, T expected) { argument
95 if (actual != expected)
98 + "; expected: " + expected
/openjdk7/langtools/test/tools/javap/
H A DT6866657.java70 void expectEqual(int found, int expected) { argument
71 if (found != expected)
72 error("bad value found: " + found + " expected: " + expected);

Completed in 107 milliseconds

123456789