We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 146a86e commit d125408Copy full SHA for d125408
test/literal_test.cc
@@ -20,6 +20,7 @@
20
#include "iceberg/literal.h"
21
22
#include <limits>
23
+#include <numbers>
24
#include <vector>
25
26
#include <gtest/gtest.h>
@@ -184,8 +185,8 @@ TEST(PrimitiveLiteralTest, FloatCastTo) {
184
185
186
// Double type tests
187
TEST(PrimitiveLiteralTest, DoubleBasics) {
- auto double_literal = PrimitiveLiteral::Double(3.141592653589793);
188
- auto negative_double = PrimitiveLiteral::Double(-2.718281828459045);
+ auto double_literal = PrimitiveLiteral::Double(std::numbers::pi);
189
+ auto negative_double = PrimitiveLiteral::Double(-std::numbers::e);
190
191
EXPECT_EQ(double_literal.type()->type_id(), TypeId::kDouble);
192
EXPECT_EQ(negative_double.type()->type_id(), TypeId::kDouble);
0 commit comments