[libc][NFC][obvious] fix the names of MPFR tests
authorMichael Jones <michaelrj@google.com>
Wed, 20 Jan 2021 23:42:01 +0000 (23:42 +0000)
committerMichael Jones <michaelrj@google.com>
Wed, 20 Jan 2021 23:42:01 +0000 (23:42 +0000)
I missed the MPFR tests in my previous commit. They have now been fixed
to not fail the prefix check in the test macro.

libc/test/src/math/RIntTest.h
libc/test/src/math/RemQuoTest.h
libc/test/src/math/RoundToIntegerTest.h
libc/test/src/math/fmaf_test.cpp
libc/test/src/math/hypot_test.cpp
libc/test/src/math/hypotf_test.cpp

index d09dc93..18331ec 100644 (file)
@@ -128,11 +128,11 @@ public:
 };
 
 #define LIST_RINT_TESTS(F, func)                                               \
 };
 
 #define LIST_RINT_TESTS(F, func)                                               \
-  using RIntTest = RIntTestTemplate<F>;                                        \
-  TEST_F(RIntTest, specialNumbers) { testSpecialNumbers(&func); }              \
-  TEST_F(RIntTest, RoundNumbers) { testRoundNumbers(&func); }                  \
-  TEST_F(RIntTest, Fractions) { testFractions(&func); }                        \
-  TEST_F(RIntTest, SubnormalRange) { testSubnormalRange(&func); }              \
-  TEST_F(RIntTest, NormalRange) { testNormalRange(&func); }
+  using LlvmLibcRIntTest = RIntTestTemplate<F>;                                \
+  TEST_F(LlvmLibcRIntTest, specialNumbers) { testSpecialNumbers(&func); }      \
+  TEST_F(LlvmLibcRIntTest, RoundNumbers) { testRoundNumbers(&func); }          \
+  TEST_F(LlvmLibcRIntTest, Fractions) { testFractions(&func); }                \
+  TEST_F(LlvmLibcRIntTest, SubnormalRange) { testSubnormalRange(&func); }      \
+  TEST_F(LlvmLibcRIntTest, NormalRange) { testNormalRange(&func); }
 
 #endif // LLVM_LIBC_TEST_SRC_MATH_RINTTEST_H
 
 #endif // LLVM_LIBC_TEST_SRC_MATH_RINTTEST_H
index 1e00ee1..f643079 100644 (file)
@@ -133,12 +133,12 @@ public:
 };
 
 #define LIST_REMQUO_TESTS(T, func)                                             \
 };
 
 #define LIST_REMQUO_TESTS(T, func)                                             \
-  using RemQuoTest = RemQuoTestTemplate<T>;                                    \
-  TEST_F(RemQuoTest, SpecialNumbers) { testSpecialNumbers(&func); }            \
-  TEST_F(RemQuoTest, EqualNumeratorAndDenominator) {                           \
+  using LlvmLibcRemQuoTest = RemQuoTestTemplate<T>;                            \
+  TEST_F(LlvmLibcRemQuoTest, SpecialNumbers) { testSpecialNumbers(&func); }    \
+  TEST_F(LlvmLibcRemQuoTest, EqualNumeratorAndDenominator) {                   \
     testEqualNumeratorAndDenominator(&func);                                   \
   }                                                                            \
     testEqualNumeratorAndDenominator(&func);                                   \
   }                                                                            \
-  TEST_F(RemQuoTest, SubnormalRange) { testSubnormalRange(&func); }            \
-  TEST_F(RemQuoTest, NormalRange) { testNormalRange(&func); }
+  TEST_F(LlvmLibcRemQuoTest, SubnormalRange) { testSubnormalRange(&func); }    \
+  TEST_F(LlvmLibcRemQuoTest, NormalRange) { testNormalRange(&func); }
 
 #endif // LLVM_LIBC_TEST_SRC_MATH_REMQUOTEST_H
 
 #endif // LLVM_LIBC_TEST_SRC_MATH_REMQUOTEST_H
index d8711fa..4b28039 100644 (file)
@@ -304,13 +304,22 @@ public:
 };
 
 #define LIST_ROUND_TO_INTEGER_TESTS_HELPER(F, I, func, TestModes)              \
 };
 
 #define LIST_ROUND_TO_INTEGER_TESTS_HELPER(F, I, func, TestModes)              \
-  using RoundToIntegerTest = RoundToIntegerTestTemplate<F, I, TestModes>;      \
-  TEST_F(RoundToIntegerTest, InfinityAndNaN) { testInfinityAndNaN(&func); }    \
-  TEST_F(RoundToIntegerTest, RoundNumbers) { testRoundNumbers(&func); }        \
-  TEST_F(RoundToIntegerTest, Fractions) { testFractions(&func); }              \
-  TEST_F(RoundToIntegerTest, IntegerOverflow) { testIntegerOverflow(&func); }  \
-  TEST_F(RoundToIntegerTest, SubnormalRange) { testSubnormalRange(&func); }    \
-  TEST_F(RoundToIntegerTest, NormalRange) { testNormalRange(&func); }
+  using LlvmLibcRoundToIntegerTest =                                           \
+      RoundToIntegerTestTemplate<F, I, TestModes>;                             \
+  TEST_F(LlvmLibcRoundToIntegerTest, InfinityAndNaN) {                         \
+    testInfinityAndNaN(&func);                                                 \
+  }                                                                            \
+  TEST_F(LlvmLibcRoundToIntegerTest, RoundNumbers) {                           \
+    testRoundNumbers(&func);                                                   \
+  }                                                                            \
+  TEST_F(LlvmLibcRoundToIntegerTest, Fractions) { testFractions(&func); }      \
+  TEST_F(LlvmLibcRoundToIntegerTest, IntegerOverflow) {                        \
+    testIntegerOverflow(&func);                                                \
+  }                                                                            \
+  TEST_F(LlvmLibcRoundToIntegerTest, SubnormalRange) {                         \
+    testSubnormalRange(&func);                                                 \
+  }                                                                            \
+  TEST_F(LlvmLibcRoundToIntegerTest, NormalRange) { testNormalRange(&func); }
 
 #define LIST_ROUND_TO_INTEGER_TESTS(F, I, func)                                \
   LIST_ROUND_TO_INTEGER_TESTS_HELPER(F, I, func, false)
 
 #define LIST_ROUND_TO_INTEGER_TESTS(F, I, func)                                \
   LIST_ROUND_TO_INTEGER_TESTS_HELPER(F, I, func, false)
index 7db666b..f58698c 100644 (file)
@@ -10,7 +10,7 @@
 
 #include "src/math/fmaf.h"
 
 
 #include "src/math/fmaf.h"
 
-using FmaTest = FmaTestTemplate<float>;
+using LlvmLibcFmaTest = FmaTestTemplate<float>;
 
 TEST_F(LlvmLibcFmaTest, SpecialNumbers) {
   testSpecialNumbers(&__llvm_libc::fmaf);
 
 TEST_F(LlvmLibcFmaTest, SpecialNumbers) {
   testSpecialNumbers(&__llvm_libc::fmaf);
index e8604cc..928c38a 100644 (file)
@@ -10,7 +10,7 @@
 
 #include "src/math/hypot.h"
 
 
 #include "src/math/hypot.h"
 
-using HypotTest = HypotTestTemplate<double>;
+using LlvmLibcHypotTest = HypotTestTemplate<double>;
 
 TEST_F(LlvmLibcHypotTest, SpecialNumbers) {
   testSpecialNumbers(&__llvm_libc::hypot);
 
 TEST_F(LlvmLibcHypotTest, SpecialNumbers) {
   testSpecialNumbers(&__llvm_libc::hypot);
index ef4ef68..94f102e 100644 (file)
@@ -10,7 +10,7 @@
 
 #include "src/math/hypotf.h"
 
 
 #include "src/math/hypotf.h"
 
-using HypotfTest = HypotTestTemplate<float>;
+using LlvmLibcHypotfTest = HypotTestTemplate<float>;
 
 TEST_F(LlvmLibcHypotfTest, SpecialNumbers) {
   testSpecialNumbers(&__llvm_libc::hypotf);
 
 TEST_F(LlvmLibcHypotfTest, SpecialNumbers) {
   testSpecialNumbers(&__llvm_libc::hypotf);