aboutsummaryrefslogtreecommitdiff
path: root/libc/test/src/math/hypot_test.cpp
blob: 8f560f053326b62252ac48d78d839b90213e4b45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
//===-- Unittests for hypot -----------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#include "HypotTest.h"

#include "src/math/hypot.h"

using LlvmLibcHypotTest = HypotTestTemplate<double>;

TEST_F(LlvmLibcHypotTest, SpecialNumbers) {
  test_special_numbers(&LIBC_NAMESPACE::hypot);
}

TEST_F(LlvmLibcHypotTest, SubnormalRange) {
  test_subnormal_range(&LIBC_NAMESPACE::hypot);
}

TEST_F(LlvmLibcHypotTest, NormalRange) {
  test_normal_range(&LIBC_NAMESPACE::hypot);
}