This source file includes following definitions.
- test_function
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 static void
18 test_function (void)
19 {
20
21
22
23 ASSERT (HYPOT (INFINITY, L_(2.0)) == INFINITY);
24 ASSERT (HYPOT (- INFINITY, L_(2.0)) == INFINITY);
25 ASSERT (HYPOT (INFINITY, - L_(2.0)) == INFINITY);
26 ASSERT (HYPOT (- INFINITY, - L_(2.0)) == INFINITY);
27 ASSERT (HYPOT (L_(2.0), INFINITY) == INFINITY);
28 ASSERT (HYPOT (L_(2.0), - INFINITY) == INFINITY);
29 ASSERT (HYPOT (- L_(2.0), INFINITY) == INFINITY);
30 ASSERT (HYPOT (- L_(2.0), - INFINITY) == INFINITY);
31
32
33 ASSERT (HYPOT (INFINITY, NAN) == INFINITY);
34 ASSERT (HYPOT (- INFINITY, NAN) == INFINITY);
35 ASSERT (HYPOT (NAN, INFINITY) == INFINITY);
36 ASSERT (HYPOT (NAN, - INFINITY) == INFINITY);
37
38
39 ASSERT (ISNAN (HYPOT (NAN, L_(2.0))));
40 ASSERT (ISNAN (HYPOT (NAN, - L_(2.0))));
41 ASSERT (ISNAN (HYPOT (L_(2.0), NAN)));
42 ASSERT (ISNAN (HYPOT (- L_(2.0), NAN)));
43 }