Skip to content

Commit d125408

Browse files
committed
Fix lint
1 parent 146a86e commit d125408

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/literal_test.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#include "iceberg/literal.h"
2121

2222
#include <limits>
23+
#include <numbers>
2324
#include <vector>
2425

2526
#include <gtest/gtest.h>
@@ -184,8 +185,8 @@ TEST(PrimitiveLiteralTest, FloatCastTo) {
184185

185186
// Double type tests
186187
TEST(PrimitiveLiteralTest, DoubleBasics) {
187-
auto double_literal = PrimitiveLiteral::Double(3.141592653589793);
188-
auto negative_double = PrimitiveLiteral::Double(-2.718281828459045);
188+
auto double_literal = PrimitiveLiteral::Double(std::numbers::pi);
189+
auto negative_double = PrimitiveLiteral::Double(-std::numbers::e);
189190

190191
EXPECT_EQ(double_literal.type()->type_id(), TypeId::kDouble);
191192
EXPECT_EQ(negative_double.type()->type_id(), TypeId::kDouble);

0 commit comments

Comments
 (0)