1//===-- Unittests for hypotf ----------------------------------------------===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#include "HypotTest.h"
10#include "hypotf_hard_to_round.h"
11
12#include "src/math/hypotf.h"
13
14using LlvmLibcHypotfTest = HypotTestTemplate<float>;
15
16TEST_F(LlvmLibcHypotfTest, SpecialNumbers) {
17 test_special_numbers(func: &LIBC_NAMESPACE::hypotf);
18}
19
20TEST_F(LlvmLibcHypotfTest, SubnormalRange) {
21 test_subnormal_range(func: &LIBC_NAMESPACE::hypotf);
22}
23
24TEST_F(LlvmLibcHypotfTest, NormalRange) {
25 test_normal_range(func: &LIBC_NAMESPACE::hypotf);
26}
27
28TEST_F(LlvmLibcHypotfTest, TrickyInputs) {
29 test_input_list(func: &LIBC_NAMESPACE::hypotf, n: N_HARD_TO_ROUND,
30 inputs: HYPOTF_HARD_TO_ROUND);
31}
32

source code of libc/test/src/math/hypotf_test.cpp