Home
last modified time | relevance | path

Searched refs:g_assert_cmpfloat (Results 1 – 20 of 20) sorted by relevance

/third_party/glib/glib/tests/
Drcbox.c40 g_assert_cmpfloat (a->x, ==, 0.f); in test_rcbox_new()
41 g_assert_cmpfloat (a->y, ==, 0.f); in test_rcbox_new()
59 g_assert_cmpfloat (a->x, ==, 0.f); in test_atomic_rcbox_new()
60 g_assert_cmpfloat (a->y, ==, 0.f); in test_atomic_rcbox_new()
71 g_assert_cmpfloat (p->x, ==, 42.0f); in point_clear()
72 g_assert_cmpfloat (p->y, ==, 47.0f); in point_clear()
161 g_assert_cmpfloat (a->x, ==, b->x); in test_rcbox_dup()
162 g_assert_cmpfloat (a->y, ==, b->y); in test_rcbox_dup()
169 g_assert_cmpfloat (a->x, !=, b->x); in test_rcbox_dup()
170 g_assert_cmpfloat (a->y, !=, b->y); in test_rcbox_dup()
[all …]
Drand.c117 g_assert_cmpfloat (d, >=, 0.0); in test_rand()
118 g_assert_cmpfloat (d, <, 1.0); in test_rand()
121 g_assert_cmpfloat (d, >=, 0.0); in test_rand()
122 g_assert_cmpfloat (d, <, 1.0); in test_rand()
125 g_assert_cmpfloat (d, >=, -8.0); in test_rand()
126 g_assert_cmpfloat (d, <, 32.0); in test_rand()
129 g_assert_cmpfloat (d, >=, -8.0); in test_rand()
130 g_assert_cmpfloat (d, <, 32.0); in test_rand()
152 g_assert_cmpfloat (ABS (proportion - 0.25), <, 0.025); in test_rand()
167 g_assert_cmpfloat (-G_MAXDOUBLE, <=, d); in test_double_range()
[all …]
Dtimer.c40 g_assert_cmpfloat (elapsed, <, 1.0); in test_timer_basic()
60 g_assert_cmpfloat (elapsed, ==, elapsed2); in test_timer_stop()
80 g_assert_cmpfloat (elapsed, <, elapsed2); in test_timer_continue()
99 g_assert_cmpfloat (elapsed, >, elapsed2); in test_timer_reset()
Dtesting.c176 g_assert_cmpfloat (3.3, !=, 7); in test_assertions()
177 g_assert_cmpfloat (7, <=, 3 + 4); in test_assertions()
271 g_assert_cmpfloat (g_test_timer_last(), ==, 0); in test_timer()
274 g_assert_cmpfloat (ttime, >, 0); in test_timer()
275 g_assert_cmpfloat (g_test_timer_last(), ==, ttime); in test_timer()
438 g_assert_cmpfloat (shared_rand_state.drange, >=, -999); in test_rand1()
439 g_assert_cmpfloat (shared_rand_state.drange, <=, +17); in test_rand1()
453 g_assert_cmpfloat (shared_rand_state.vdouble, ==, g_test_rand_double()); in test_rand2()
454 g_assert_cmpfloat (shared_rand_state.drange, ==, g_test_rand_double_range (-999, +17)); in test_rand2()
Dstrfuncs.c1159 g_assert_cmpfloat (value, ==, 0.0); in test_strtod()
1162 g_assert_cmpfloat (g_strtod ("\x00\x00\x00\x00", NULL), ==, 0.0); in test_strtod()
1163 g_assert_cmpfloat (g_strtod ("\x00\x00\x00\x00", &str_end), ==, 0.0); in test_strtod()
1165 g_assert_cmpfloat (g_strtod ("\xff\xff\xff\xff", NULL), ==, 0.0); in test_strtod()
1166 g_assert_cmpfloat (g_strtod ("\xff\xff\xff\xff", &str_end), ==, 0.0); in test_strtod()
1170 g_assert_cmpfloat (g_strtod (gold_ratio_str, NULL), ==, gold_ratio); in test_strtod()
1171 g_assert_cmpfloat (g_strtod (gold_ratio_str, &str_end), ==, gold_ratio); in test_strtod()
1173 g_assert_cmpfloat (g_strtod (minus_gold_ratio_str, NULL), ==, -gold_ratio); in test_strtod()
1174 g_assert_cmpfloat (g_strtod (minus_gold_ratio_str, &str_end), ==, -gold_ratio); in test_strtod()
Dkeyfile.c203 g_assert_cmpfloat (value[i], ==, v); in check_double_list_value()
284 g_assert_cmpfloat (value, ==, expected); in check_double_value()
692 g_assert_cmpfloat (dval, ==, 0.0); in test_number()
696 g_assert_cmpfloat (dval, ==, 0.0); in test_number()
700 g_assert_cmpfloat (dval, ==, 0.0); in test_number()
704 g_assert_cmpfloat (dval, ==, 0.0); in test_number()
Dhash.c1658 g_assert_cmpfloat (1.3, <, min); in test_primes()
1659 g_assert_cmpfloat (max, <, 2.0); in test_primes()
/third_party/glib/gobject/tests/
Dbinding.c420 g_assert_cmpfloat (target->double_value, ==, source->double_value); in binding_canonicalisation()
423 g_assert_cmpfloat (source->double_value, !=, target->double_value); in binding_canonicalisation()
500 g_assert_cmpfloat (target->double_value, ==, 24.0); in binding_transform_default()
526 g_assert_cmpfloat (target->double_value, ==, ((9 * 24.0 / 5) + 32.0)); in binding_transform()
529 g_assert_cmpfloat (source->double_value, ==, (5 * (69.0 - 32.0) / 9)); in binding_transform()
557 g_assert_cmpfloat (target->double_value, ==, ((9 * 24.0 / 5) + 32.0)); in binding_transform_closure()
560 g_assert_cmpfloat (source->double_value, ==, (5 * (69.0 - 32.0) / 9)); in binding_transform_closure()
Dprivate.c215 g_assert_cmpfloat (test_object_get_dummy_1 (obj), ==, 3.14159f); in private_instance()
Dsignals.c608 g_assert_cmpfloat (v_double, >, 0.0); in on_generic_marshaller_1()
609 g_assert_cmpfloat (v_double, <, 1.0); in on_generic_marshaller_1()
610 g_assert_cmpfloat (v_float, >, 5.0); in on_generic_marshaller_1()
611 g_assert_cmpfloat (v_float, <, 6.0); in on_generic_marshaller_1()
947 g_assert_cmpfloat (fl, ==, 0.25); in all_types_handler()
948 g_assert_cmpfloat (db, ==, 1.5); in all_types_handler()
Dparam.c327 g_assert_cmpfloat (g_value_get_##getter (&dest), ==, value); \ in test_value_transform()
352 g_assert_cmpfloat (g_value_get_##getter (&dest), ==, value); \ in test_value_transform()
/third_party/glib/gio/tests/
Dgdbus-proxy.c659 g_assert_cmpfloat (g_variant_get_double (value), ==, 7.5); in test_expected_interface()
667 g_assert_cmpfloat (g_variant_get_double (value), ==, 75.0); in test_expected_interface()
685 g_assert_cmpfloat (g_variant_get_double (value), ==, 85.0); in test_expected_interface()
Dgsettings.c335 g_assert_cmpfloat (d, ==, 123.456); in test_basic_types()
339 g_assert_cmpfloat (d, ==, G_MINDOUBLE); in test_basic_types()
343 g_assert_cmpfloat (d, ==, G_MAXDOUBLE); in test_basic_types()
1311 g_assert_cmpfloat (g_settings_get_double (settings, "double"), ==, G_MAXFLOAT); in test_simple_binding()
1316 g_assert_cmpfloat (d, ==, G_MINFLOAT); in test_simple_binding()
1319 g_assert_cmpfloat (g_settings_get_double (settings, "double"), ==, G_MAXDOUBLE); in test_simple_binding()
1324 g_assert_cmpfloat (d, ==, -G_MINDOUBLE); in test_simple_binding()
Dgdbus-test-codegen.c835 g_assert_cmpfloat (val_unset_d, ==, 0.0); in check_bar_proxy()
1866 g_assert_cmpfloat (foo_igen_bar_get_d (skeleton), ==, 0.0); in om_check_property_and_signal_emission()
1867 g_assert_cmpfloat (foo_igen_bar_get_d (proxy), ==, 0.0); in om_check_property_and_signal_emission()
/third_party/glib/tests/
Dtestglib.c781 g_assert_cmpfloat (elapsed, <=, g_timer_elapsed (timer, NULL)); in timer_tests()
838 g_assert_cmpfloat (elapsed, >, 8.8); in timer_tests()
839 g_assert_cmpfloat (elapsed, <, 9.2); in timer_tests()
846 g_assert_cmpfloat (elapsed, >, 8.8 + 6.5); in timer_tests()
847 g_assert_cmpfloat (elapsed, <, 9.2 + 6.5); in timer_tests()
/third_party/libsoup/tests/
Dxmlrpc-old-test.c130 g_assert_cmpfloat (result, ==, sum); in test_sum()
Dxmlrpc-test.c104 g_assert_cmpfloat (result, ==, sum); in test_sum()
/third_party/glib/glib/
Dgtestutils.h67 #define g_assert_cmpfloat(n1,cmp,n2) G_STMT_START { \ macro
/third_party/gstreamer/gstplugins_good/gst/rtp/
Dgstrtpulpfecenc.c300 g_assert_cmpfloat (ctx->budget_important, >=, 0.); in gst_rtp_ulpfec_enc_stream_ctx_get_fec_packets_num()
/third_party/glib/docs/reference/glib/
Dglib-sections.txt3571 g_assert_cmpfloat