Skip to content

Commit 979e9c0

Browse files
committed
nit
1 parent cf98927 commit 979e9c0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

libc/test/src/complex/ConjTest.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,10 @@ class ConjTest : public LIBC_NAMESPACE::testing::FEnvSafeTest {
7070
CFPT(121.121 - zero * 1.0i));
7171
EXPECT_CFP_EQ(func(CFPT(0.0 - 0.0i)), CFPT(0.0 + 0.0i));
7272
EXPECT_CFP_EQ(func(CFPT(0.0 + 0.0i)), CFPT(0.0 - 0.0i));
73-
// This test passes because the conjugate of -0.0 - 0.0i is -0.0 + 0.0i
74-
// but -0.0 + 0.0i is actually CMPLX(-0.0, 0.0) + CMPLX(0.0, 0.0) = 0.0 +
75-
// 0.0i so to represent -0.0 + 0.0i, we just write -0.0
73+
// This test passes because the conjugate of -0.0 - 0.0i is CMPLX(-0.0, 0.0)
74+
// which cannot be represented as -0.0 + 0.0i because -0.0 + 0.0i is actually
75+
// CMPLX(-0.0, 0.0) + CMPLX(0.0, 0.0) = 0.0 + 0.0i so to represent
76+
// CMPLX(-0.0, 0.0), we use -0.0
7677
EXPECT_CFP_EQ(func(CFPT(-0.0 - 0.0i)), CFPT(-0.0));
7778
// This test passes because -0.0 + 0.0i is actually
7879
// CMPLX(-0.0, 0.0) + CMPLX(0.0, 0.0) = CMPLX(-0.0 + 0.0, 0.0) = 0.0 + 0.0i

0 commit comments

Comments
 (0)