Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroshade committed Sep 30, 2024
1 parent af8c722 commit 48639e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cpp/src/arrow/array/array_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3110,11 +3110,11 @@ TEST_P(Decimal32Test, WithNulls) {
std::vector<Decimal32> draw = {Decimal32(1), Decimal32(2), Decimal32(-1), Decimal32(4),
Decimal32(-1), Decimal32(1), Decimal32(2)};
Decimal32 big;
ASSERT_OK_AND_ASSIGN(big, Decimal32::FromString("23034.234234"));
ASSERT_OK_AND_ASSIGN(big, Decimal32::FromString("23034.234"));
draw.push_back(big);

Decimal32 big_negative;
ASSERT_OK_AND_ASSIGN(big_negative, Decimal32::FromString("-23049.235234"));
ASSERT_OK_AND_ASSIGN(big_negative, Decimal32::FromString("-23049.235"));
draw.push_back(big_negative);

std::vector<uint8_t> valid_bytes = {true, true, false, true, false,
Expand Down
2 changes: 1 addition & 1 deletion cpp/src/arrow/type_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2254,7 +2254,7 @@ TEST(TypesTest, TestDecimal32) {
}

TEST(TypesTest, TestDecimal64) {
Decimal32Type t1(12, 4);
Decimal64Type t1(12, 4);

EXPECT_EQ(t1.id(), Type::DECIMAL64);
EXPECT_EQ(t1.precision(), 12);
Expand Down

0 comments on commit 48639e3

Please sign in to comment.