[ADT] Fix another "oops" spotted by eddyb and reported in IRC.
authorChandler Carruth <chandlerc@gmail.com>
Mon, 10 Jul 2017 05:41:14 +0000 (05:41 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Mon, 10 Jul 2017 05:41:14 +0000 (05:41 +0000)
This test pretty clearly should be calling 'maxnum' here. =]

llvm-svn: 307519

llvm/unittests/ADT/APFloatTest.cpp

index ec70530..69da089 100644 (file)
@@ -552,7 +552,7 @@ TEST(APFloatTest, MaxNum) {
   EXPECT_EQ(2.0, maxnum(f1, f2).convertToDouble());
   EXPECT_EQ(2.0, maxnum(f2, f1).convertToDouble());
   EXPECT_EQ(1.0, maxnum(f1, nan).convertToDouble());
-  EXPECT_EQ(1.0, minnum(nan, f1).convertToDouble());
+  EXPECT_EQ(1.0, maxnum(nan, f1).convertToDouble());
 }
 
 TEST(APFloatTest, Denormal) {