Home
last modified time | relevance | path

Searched refs:EXPECT_DOUBLE_EQ (Results 1 – 25 of 81) sorted by relevance

1234

/third_party/benchmark/test/
Dstatistics_gtest.cc10 EXPECT_DOUBLE_EQ(benchmark::StatisticsMean({42, 42, 42, 42}), 42.0); in TEST()
11 EXPECT_DOUBLE_EQ(benchmark::StatisticsMean({1, 2, 3, 4}), 2.5); in TEST()
12 EXPECT_DOUBLE_EQ(benchmark::StatisticsMean({1, 2, 5, 10, 10, 14}), 7.0); in TEST()
16 EXPECT_DOUBLE_EQ(benchmark::StatisticsMedian({42, 42, 42, 42}), 42.0); in TEST()
17 EXPECT_DOUBLE_EQ(benchmark::StatisticsMedian({1, 2, 3, 4}), 2.5); in TEST()
18 EXPECT_DOUBLE_EQ(benchmark::StatisticsMedian({1, 2, 5, 10, 10}), 5.0); in TEST()
22 EXPECT_DOUBLE_EQ(benchmark::StatisticsStdDev({101, 101, 101, 101}), 0.0); in TEST()
23 EXPECT_DOUBLE_EQ(benchmark::StatisticsStdDev({1, 2, 3}), 1.0); in TEST()
24 EXPECT_DOUBLE_EQ(benchmark::StatisticsStdDev({2.5, 2.4, 3.3, 4.2, 5.1}), in TEST()
29 EXPECT_DOUBLE_EQ(benchmark::StatisticsCV({101, 101, 101, 101}), 0.0); in TEST()
[all …]
/third_party/musl/libc-test/src/functionalext/supplement/math/math_gtest/
Dmath_lgamma_r_test.cpp20 EXPECT_DOUBLE_EQ(log(1.0), lgamma_r(2.0, &signResult));
33 EXPECT_DOUBLE_EQ(HUGE_VAL, lgamma_r(0.0, &signResult));
46 EXPECT_DOUBLE_EQ(HUGE_VAL, lgamma_r(-0.0, &signResult));
59 EXPECT_DOUBLE_EQ(log(1.0f), lgammaf_r(2.0f, &signResult));
72 EXPECT_DOUBLE_EQ(HUGE_VAL, lgammaf_r(0.0f, &signResult));
85 EXPECT_DOUBLE_EQ(HUGE_VAL, lgammaf_r(-0.0f, &signResult));
98 EXPECT_DOUBLE_EQ(log(1.0L), lgamma_r(2.0L, &signResult));
111 EXPECT_DOUBLE_EQ(HUGE_VAL, lgammal_r(0.0L, &signResult));
124 EXPECT_DOUBLE_EQ(HUGE_VAL, lgammal_r(-0.0L, &signResult));
Dmath_copysign_test.cpp38 EXPECT_DOUBLE_EQ(1.0, copysign(1.0, 2.0));
39 EXPECT_DOUBLE_EQ(-1.0, copysign(1.0, -2.0));
40 EXPECT_DOUBLE_EQ(3.0, copysign(3.0, 2.0));
41 EXPECT_DOUBLE_EQ(-3.0, copysign(3.0, -2.0));
79 EXPECT_DOUBLE_EQ(1.0L, copysignl(1.0L, 2.0L));
80 EXPECT_DOUBLE_EQ(-1.0L, copysignl(1.0L, -2.0L));
81 EXPECT_DOUBLE_EQ(3.0L, copysignl(3.0L, 2.0L));
82 EXPECT_DOUBLE_EQ(-3.0L, copysignl(3.0L, -2.0L));
Dmath_nexttoward_test.cpp18 EXPECT_DOUBLE_EQ(0.0, nexttoward(0.0, 0.0L));
19 EXPECT_DOUBLE_EQ(4.9406564584124654e-324, nexttoward(0.0, 1.0L));
20 EXPECT_DOUBLE_EQ(-4.9406564584124654e-324, nexttoward(0.0, -1.0L));
42 EXPECT_DOUBLE_EQ(0.0L, nexttowardl(0.0L, 0.0L));
44 EXPECT_DOUBLE_EQ(minPositive, nexttowardl(0.0L, 1.0L));
45 EXPECT_DOUBLE_EQ(-minPositive, nexttowardl(0.0L, -1.0L));
Dmath_fdim_test.cpp36 EXPECT_DOUBLE_EQ(2.0, fdim(3.0, 1.0));
37 EXPECT_DOUBLE_EQ(2.0, fdim(5.0, 3.0));
38 EXPECT_DOUBLE_EQ(0.0, fdim(1.0, 2.0));
74 EXPECT_DOUBLE_EQ(2.0L, fdiml(3.0L, 1.0L));
75 EXPECT_DOUBLE_EQ(2.0L, fdiml(5.0L, 3.0L));
76 EXPECT_DOUBLE_EQ(0.0L, fdiml(1.0L, 2.0L));
Dmath_fmax_test.cpp36 EXPECT_DOUBLE_EQ(17.0, fmax(17.0, 17.0));
37 EXPECT_DOUBLE_EQ(15.0, fmax(15.0, nan("")));
38 EXPECT_DOUBLE_EQ(14.0, fmax(nan(""), 14.0));
74 EXPECT_DOUBLE_EQ(17.0L, fmaxl(17.0L, 17.0L));
75 EXPECT_DOUBLE_EQ(15.0L, fmaxl(15.0L, nanl("")));
76 EXPECT_DOUBLE_EQ(14.0L, fmaxl(nanl(""), 14.0L));
Dmath_nextafter_test.cpp37 EXPECT_DOUBLE_EQ(0.0, nextafter(0.0, 0.0));
38 EXPECT_DOUBLE_EQ(4.9406564584124654e-324, nextafter(0.0, 1.0));
39 EXPECT_DOUBLE_EQ(-4.9406564584124654e-324, nextafter(0.0, -1.0));
76 EXPECT_DOUBLE_EQ(0.0L, nextafterl(0.0L, 0.0L));
78 EXPECT_DOUBLE_EQ(minPositive, nextafterl(0.0L, 1.0L));
79 EXPECT_DOUBLE_EQ(-minPositive, nextafterl(0.0L, -1.0L));
Dmath_fmin_test.cpp36 EXPECT_DOUBLE_EQ(14.0, fmin(15.0, 14.0));
37 EXPECT_DOUBLE_EQ(11.0, fmin(11.0, nan("")));
38 EXPECT_DOUBLE_EQ(12.0, fmin(nan(""), 12.0));
74 EXPECT_DOUBLE_EQ(14.0L, fminl(15.0L, 14.0L));
75 EXPECT_DOUBLE_EQ(11.0L, fminl(11.0L, nanl("")));
76 EXPECT_DOUBLE_EQ(12.0L, fminl(nanl(""), 12.0L));
Dmath_exp_test.cpp36 EXPECT_DOUBLE_EQ(1.0, exp(0.0));
37 EXPECT_DOUBLE_EQ(M_E, exp(1.0));
72 EXPECT_DOUBLE_EQ(1.0L, expl(0.0L));
73 EXPECT_DOUBLE_EQ(M_E, expl(1.0L));
Dmath_exp2_test.cpp36 EXPECT_DOUBLE_EQ(8.0, exp2(3.0));
47 EXPECT_DOUBLE_EQ(10.0, exp2(log2(10)));
49 EXPECT_DOUBLE_EQ(10.0L, exp2l(log2l(10)));
83 EXPECT_DOUBLE_EQ(8.0L, exp2l(3.0L));
Dmath_pow_test.cpp47 EXPECT_DOUBLE_EQ(1.0, (pow(1.0, nan(""))));
48 EXPECT_DOUBLE_EQ(9.0, pow(3.0, 2.0));
83 EXPECT_DOUBLE_EQ(1.0f, (powf(1.0f, nanf(""))));
84 EXPECT_DOUBLE_EQ(9.0f, powf(3.0f, 2.0f));
Dmath_sincos_test.cpp42 EXPECT_DOUBLE_EQ(0.0, sineResult);
43 EXPECT_DOUBLE_EQ(1.0, cosineResult);
86 EXPECT_DOUBLE_EQ(0.0L, sineResult);
87 EXPECT_DOUBLE_EQ(1.0L, cosineResult);
Dmath_significand_test.cpp37 EXPECT_DOUBLE_EQ(0.0, significand(0.0));
38 EXPECT_DOUBLE_EQ(1.2, significand(1.2));
39 EXPECT_DOUBLE_EQ(1.53125, significand(12.25));
Dmath_jn_test.cpp18 EXPECT_DOUBLE_EQ(0.0, jn(4, 0.0));
19 EXPECT_DOUBLE_EQ(0.0024766389641099553, jn(4, 1.0));
Dmath_j0_test.cpp18 EXPECT_DOUBLE_EQ(1.0, j0(0.0));
19 EXPECT_DOUBLE_EQ(0.76519768655796661, j0(1.0));
Dmath_j1_test.cpp18 EXPECT_DOUBLE_EQ(0.0, j1(0.0));
19 EXPECT_DOUBLE_EQ(0.44005058574493355, j1(1.0));
Dmath_y1_test.cpp18 EXPECT_DOUBLE_EQ(-HUGE_VAL, y1(0.0));
19 EXPECT_DOUBLE_EQ(-0.78121282130028868, y1(1.0));
Dmath_yn_test.cpp18 EXPECT_DOUBLE_EQ(-HUGE_VAL, yn(4, 0.0));
19 EXPECT_DOUBLE_EQ(-33.278423028972114, yn(4, 1.0));
Dmath_y0_test.cpp18 EXPECT_DOUBLE_EQ(-HUGE_VAL, y0(0.0));
19 EXPECT_DOUBLE_EQ(0.08825696421567697, y0(1.0));
Dmath_erf_test.cpp18 EXPECT_DOUBLE_EQ(0.84270079294971489, erf(1.0));
38 EXPECT_DOUBLE_EQ(0.84270079294971489L, erfl(1.0L));
Dmath_scalbln_test.cpp18 EXPECT_DOUBLE_EQ(32.0, scalbln(4.0, 3L));
38 EXPECT_DOUBLE_EQ(32.0L, scalblnl(4.0L, 3L));
/third_party/musl/libc-test/src/functionalext/supplement/stdlib/
Dwcstod.c24 #define EXPECT_DOUBLE_EQ(a, b) \ macro
42 EXPECT_DOUBLE_EQ(val, target); in wcstod_0100()
59 EXPECT_DOUBLE_EQ(val, target); in wcstod_0200()
73 EXPECT_DOUBLE_EQ(val, target); in wcstod_0300()
103 EXPECT_DOUBLE_EQ(val, target); in wcstod_0500()
117 EXPECT_DOUBLE_EQ(val, target); in wcstod_0600()
/third_party/protobuf/src/google/protobuf/io/
Dtokenizer_unittest.cc735 EXPECT_DOUBLE_EQ(1, Tokenizer::ParseFloat("1.")); in TEST_F()
736 EXPECT_DOUBLE_EQ(1e3, Tokenizer::ParseFloat("1e3")); in TEST_F()
737 EXPECT_DOUBLE_EQ(1e3, Tokenizer::ParseFloat("1E3")); in TEST_F()
738 EXPECT_DOUBLE_EQ(1.5e3, Tokenizer::ParseFloat("1.5e3")); in TEST_F()
739 EXPECT_DOUBLE_EQ(.1, Tokenizer::ParseFloat(".1")); in TEST_F()
740 EXPECT_DOUBLE_EQ(.25, Tokenizer::ParseFloat(".25")); in TEST_F()
741 EXPECT_DOUBLE_EQ(.1e3, Tokenizer::ParseFloat(".1e3")); in TEST_F()
742 EXPECT_DOUBLE_EQ(.25e3, Tokenizer::ParseFloat(".25e3")); in TEST_F()
743 EXPECT_DOUBLE_EQ(.1e+3, Tokenizer::ParseFloat(".1e+3")); in TEST_F()
744 EXPECT_DOUBLE_EQ(.1e-3, Tokenizer::ParseFloat(".1e-3")); in TEST_F()
[all …]
/third_party/musl/libc-test/src/functionalext/supplement/math/
Dsignificand.c20 #define EXPECT_DOUBLE_EQ(a, b) \ macro
34 EXPECT_DOUBLE_EQ(0.0, d); in significand_0100()
45 EXPECT_DOUBLE_EQ(1.2, d); in significand_0200()
56 EXPECT_DOUBLE_EQ(1.53125, d); in significand_0300()
/third_party/skia/third_party/externals/abseil-cpp/absl/flags/
Dmarshalling_test.cc466 EXPECT_DOUBLE_EQ(value, -0.1f); in TEST()
468 EXPECT_DOUBLE_EQ(value, 0.01f); in TEST()
472 EXPECT_DOUBLE_EQ(value, 1.2e3f); in TEST()
474 EXPECT_DOUBLE_EQ(value, 9.8765402e-37f); in TEST()
476 EXPECT_DOUBLE_EQ(value, 0.11e+3f); in TEST()
478 EXPECT_DOUBLE_EQ(value, 0.f); in TEST()
484 EXPECT_DOUBLE_EQ(value, 1.6f); in TEST()
486 EXPECT_DOUBLE_EQ(value, 0.0001f); in TEST()
490 EXPECT_DOUBLE_EQ(value, -5.1f); in TEST()
500 EXPECT_DOUBLE_EQ(value, 66096.f); in TEST()
[all …]

1234