Searched refs:expected (Results 76 - 100 of 2190) sorted by relevance

1234567891011>>

/external/compiler-rt/test/builtins/Unit/
H A Dsubdf3vfp_test.c25 double expected = a - b; local
26 if (actual != expected)
27 printf("error in test__subdf3vfp(%f, %f) = %f, expected %f\n",
28 a, b, actual, expected);
29 return actual != expected;
H A Dsubsf3vfp_test.c25 float expected = a - b; local
26 if (actual != expected)
27 printf("error in test__subsf3vfp(%f, %f) = %f, expected %f\n",
28 a, b, actual, expected);
29 return actual != expected;
/external/junit/src/org/junit/internal/
H A DInexactComparisonCriteria.java13 protected void assertElementsEqual(Object expected, Object actual) { argument
14 if (expected instanceof Double)
15 Assert.assertEquals((Double)expected, (Double)actual, fDelta);
17 Assert.assertEquals((Float)expected, (Float)actual, fDelta);
/external/v8/test/mjsunit/regress/
H A Dregress-crbug-346636.js7 function assertSame(expected, found) {
8 if (found === expected) {
9 if (expected !== 0 || (1 / expected) == (1 / found)) return;
H A Dregress-2537.js32 function foo(x, expected) {
33 assertEquals(expected, x); // This succeeds.
39 assertEquals(expected, x);
/external/v8/test/webkit/
H A Ddfg-arith-add-overflow-check-elimination-tower-of-large-numbers.js48 var expected;
52 expected = 0;
56 expected = -10;
58 shouldBe("bar(" + a + ", " + b + ")", "" + expected);
H A Ddfg-cfg-simplify-eliminate-set-local-type-check-then-branch-not-null-and-decrement.js44 var expected;
47 expected = "true";
50 expected = "false";
52 shouldBe("foo(o)", expected);
H A Ddfg-cfg-simplify-eliminate-set-local-type-check-then-branch-not-null.js42 var expected;
45 expected = "" + (i - 1);
48 expected = "null";
50 shouldBe("foo(o)", expected);
H A Ddfg-inline-arguments-osr-exit-and-capture.js44 var expected;
49 expected = i + 1 + 42 + i;
52 expected = 1.5 + 42 + i;
54 shouldBe("baz(arg1, arg2)", "" + expected);
H A Ddfg-arguments-osr-exit.js47 var expected = "74"; variable
52 expected = "\"4232\"";
55 shouldBe("bar(42)", expected);
H A Ddfg-dead-min-one-arg.js34 var expected = 42; variable
40 expected = 37;
45 shouldBe("result", "" + expected);
H A Ddfg-dead-speculation.js35 var expected = 84; variable
40 expected = 24;
43 shouldBe("variable", "" + expected);
H A Ddfg-to-string-toString-becomes-bad-with-dictionary-string-prototype.js41 var expected = "\"hello\""; variable
45 expected = "\"42\"";
47 shouldBe("\"\" + foo(\"hello\")", expected);
H A Ddfg-to-string-toString-in-string.js35 var expected = "\"hello\""; variable
40 expected = "\"42\"";
42 shouldBe("\"\" + foo(argument)", expected);
/external/valgrind/none/tests/amd64/
H A Dtm1.stdout.exp1 transactionally_apply: ok = 0 (expected 0)
2 xtest: rflags.Z = 1 (expected 1)
/external/apache-commons-math/src/main/java/org/apache/commons/math/exception/
H A DDimensionMismatchException.java39 * @param expected Expected dimension.
42 int expected) {
43 super(LocalizedFormats.DIMENSIONS_MISMATCH_SIMPLE, wrong, expected);
44 dimension = expected;
48 * @return the expected dimension.
41 DimensionMismatchException(int wrong, int expected) argument
/external/chromium-libpac/test/js-unittest/
H A Ddns_fail.js2 // failing. It tests that functions return the expected values.
23 function expectEq(expected, actual) {
24 if (expected != actual)
25 throw "Expected " + expected + " but was " + actual;
/external/deqp/framework/delibs/decpp/
H A DdeRandom.cpp54 static const bool expected[] = { true, false, false, false, true, true, false, false, false, false, false, false, true, false, true, false, false, false, false, true }; local
56 for (int i = 0; i < DE_LENGTH_OF_ARRAY(expected); i++)
57 DE_TEST_ASSERT(expected[i] == rnd.getBool());
63 static const int expected[] = { -6628, -6483, 802, -7758, -8463, 3165, 9216, 3107, 1851, 8707 }; local
65 for (int i = 0; i < DE_LENGTH_OF_ARRAY(expected); i++)
66 DE_TEST_ASSERT(expected[i] == rnd.getInt(-10000, 10000));
72 static const deUint32 expected[] = { 3694588092u, 3135240271u, 882874943u, 2108407657u, 376640368u, 1395362929u, 2611849801u, 3151830690u, 901476922u, 989608184u }; local
74 for (int i = 0; i < DE_LENGTH_OF_ARRAY(expected); i++)
75 DE_TEST_ASSERT(expected[i] == rnd.getUint32());
81 static const deUint64 expected[] local
90 static const float expected[] = { 0.763413f, 0.679680f, 0.288965f, 0.854431f, 0.403095f, 0.198132f, 0.729899f, 0.741484f, 0.358263f, 0.686578f }; local
[all...]
/external/easymock/src/org/easymock/internal/matchers/
H A DEqualsWithDelta.java26 private final Number expected; field in class:EqualsWithDelta
31 this.expected = value;
37 return expected.doubleValue() - delta.doubleValue() <= actualNumber
39 && actualNumber.doubleValue() <= expected.doubleValue()
44 buffer.append("eq(" + expected + ", " + delta + ")");
/external/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/
H A Dhas_denorm_loss.pass.cpp16 template <class T, bool expected>
20 static_assert(std::numeric_limits<T>::has_denorm_loss == expected, "has_denorm_loss test 1");
21 static_assert(std::numeric_limits<const T>::has_denorm_loss == expected, "has_denorm_loss test 2");
22 static_assert(std::numeric_limits<volatile T>::has_denorm_loss == expected, "has_denorm_loss test 3");
23 static_assert(std::numeric_limits<const volatile T>::has_denorm_loss == expected, "has_denorm_loss test 4");
H A Dhas_infinity.pass.cpp16 template <class T, bool expected>
20 static_assert(std::numeric_limits<T>::has_infinity == expected, "has_infinity test 1");
21 static_assert(std::numeric_limits<const T>::has_infinity == expected, "has_infinity test 2");
22 static_assert(std::numeric_limits<volatile T>::has_infinity == expected, "has_infinity test 3");
23 static_assert(std::numeric_limits<const volatile T>::has_infinity == expected, "has_infinity test 4");
H A Dhas_quiet_NaN.pass.cpp16 template <class T, bool expected>
20 static_assert(std::numeric_limits<T>::has_quiet_NaN == expected, "has_quiet_NaN test 1");
21 static_assert(std::numeric_limits<const T>::has_quiet_NaN == expected, "has_quiet_NaN test 2");
22 static_assert(std::numeric_limits<volatile T>::has_quiet_NaN == expected, "has_quiet_NaN test 3");
23 static_assert(std::numeric_limits<const volatile T>::has_quiet_NaN == expected, "has_quiet_NaN test 4");
H A Dhas_signaling_NaN.pass.cpp16 template <class T, bool expected>
20 static_assert(std::numeric_limits<T>::has_signaling_NaN == expected, "has_signaling_NaN test 1");
21 static_assert(std::numeric_limits<const T>::has_signaling_NaN == expected, "has_signaling_NaN test 2");
22 static_assert(std::numeric_limits<volatile T>::has_signaling_NaN == expected, "has_signaling_NaN test 3");
23 static_assert(std::numeric_limits<const volatile T>::has_signaling_NaN == expected, "has_signaling_NaN test 4");
H A Dis_bounded.pass.cpp16 template <class T, bool expected>
20 static_assert(std::numeric_limits<T>::is_bounded == expected, "is_bounded test 1");
21 static_assert(std::numeric_limits<const T>::is_bounded == expected, "is_bounded test 2");
22 static_assert(std::numeric_limits<volatile T>::is_bounded == expected, "is_bounded test 3");
23 static_assert(std::numeric_limits<const volatile T>::is_bounded == expected, "is_bounded test 4");
H A Dis_exact.pass.cpp16 template <class T, bool expected>
20 static_assert(std::numeric_limits<T>::is_exact == expected, "is_exact test 1");
21 static_assert(std::numeric_limits<const T>::is_exact == expected, "is_exact test 2");
22 static_assert(std::numeric_limits<volatile T>::is_exact == expected, "is_exact test 3");
23 static_assert(std::numeric_limits<const volatile T>::is_exact == expected, "is_exact test 4");

Completed in 369 milliseconds

1234567891011>>