Lines Matching refs:expected
575 #define ULPDIFF(given, expected) \ argument
576 (FUNC(fabs) ((given) - (expected)) / ulp (expected))
613 check_float_internal (const char *test_name, FLOAT computed, FLOAT expected, in check_float_internal() argument
627 if (issignaling (computed) && issignaling (expected)) in check_float_internal()
630 && signbit (computed) != signbit (expected)) in check_float_internal()
637 != FUNC (getpayload) (&expected))) in check_float_internal()
645 else if (issignaling (computed) || issignaling (expected)) in check_float_internal()
647 else if (isnan (computed) && isnan (expected)) in check_float_internal()
650 && signbit (computed) != signbit (expected)) in check_float_internal()
657 != FUNC (getpayload) (&expected))) in check_float_internal()
665 else if (isinf (computed) && isinf (expected)) in check_float_internal()
669 && signbit (computed) != signbit (expected)) in check_float_internal()
679 || isinf (expected) || isnan (expected)) in check_float_internal()
683 diff = FUNC(fabs) (computed - expected); in check_float_internal()
684 ulps = ULPDIFF (computed, expected); in check_float_internal()
688 && computed == 0.0 && expected == 0.0 in check_float_internal()
689 && signbit(computed) != signbit (expected)) in check_float_internal()
705 print_float (expected); in check_float_internal()
729 check_float (const char *test_name, FLOAT computed, FLOAT expected, in check_float() argument
732 check_float_internal (test_name, computed, expected, in check_float()
739 CFLOAT expected, in check_complex() argument
749 part_exp = __real__ expected; in check_complex()
759 part_exp = __imag__ expected; in check_complex()
774 check_int (const char *test_name, int computed, int expected, in check_int() argument
785 if (computed == expected) in check_int()
795 printf (" should be: %d\n", expected); in check_int()
808 check_long (const char *test_name, long int computed, long int expected, in check_long() argument
819 if (computed == expected) in check_long()
829 printf (" should be: %ld\n", expected); in check_long()
842 check_bool (const char *test_name, int computed, int expected, in check_bool() argument
853 if ((computed == 0) == (expected == 0)) in check_bool()
863 printf (" should be: %d\n", expected); in check_bool()
877 long long int expected, in check_longlong() argument
888 if (computed == expected) in check_longlong()
898 printf (" should be: %lld\n", expected); in check_longlong()
912 intmax_t expected, int exceptions) in check_intmax_t() argument
922 if (computed == expected) in check_intmax_t()
932 printf (" should be: %jd\n", expected); in check_intmax_t()
946 uintmax_t expected, int exceptions) in check_uintmax_t() argument
956 if (computed == expected) in check_uintmax_t()
966 printf (" should be: %ju\n", expected); in check_uintmax_t()