[libc++] [test] Remove an erroneously copy-paste in the hypot() tests. NFC.
authorArthur O'Dwyer <arthur.j.odwyer@gmail.com>
Sun, 2 Jan 2022 17:49:55 +0000 (12:49 -0500)
committerArthur O'Dwyer <arthur.j.odwyer@gmail.com>
Sun, 2 Jan 2022 17:49:55 +0000 (12:49 -0500)
Line 1140 is a duplicate of line 1119; it tests the two-argument version
of std::hypot, whereas all the lines in this section are supposed to be
testing the C++17 three-argument version. Remove the erroneous duplicated line.

Split out of D116295.

libcxx/test/std/numerics/c.math/cmath.pass.cpp

index 160959b..3d739f5 100644 (file)
@@ -1137,7 +1137,6 @@ void test_hypot()
     static_assert((std::is_same<decltype(std::hypot((float)0, (bool)0, (float)0)), double>::value), "");
     static_assert((std::is_same<decltype(std::hypot((float)0, (unsigned short)0, (double)0)), double>::value), "");
     static_assert((std::is_same<decltype(std::hypot((float)0, (int)0, (long double)0)), long double>::value), "");
-    static_assert((std::is_same<decltype(std::hypot((float)0, (unsigned int)0)), double>::value), "");
     static_assert((std::is_same<decltype(std::hypot((float)0, (double)0, (long)0)), double>::value), "");
     static_assert((std::is_same<decltype(std::hypot((float)0, (long double)0, (unsigned long)0)), long double>::value), "");
     static_assert((std::is_same<decltype(std::hypot((float)0, (int)0, (long long)0)), double>::value), "");