Skip to content

Commit 2b0980d

Browse files
kouandishgar
authored andcommitted
Don't assign options to ensure using the default options
1 parent 008893c commit 2b0980d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

cpp/src/arrow/table_test.cc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -306,11 +306,9 @@ TEST(TestTableEqualityFloatType, Approximate) {
306306

307307
ASSERT_FALSE(table->Equals(*other_table, options));
308308

309-
options = options.use_atol(true).atol(1e-3);
310-
ASSERT_TRUE(table->Equals(*other_table, options));
309+
ASSERT_TRUE(table->Equals(*other_table, options.use_atol(true).atol(1e-3)));
311310

312-
options = options.use_atol(true).atol(1e-5);
313-
ASSERT_FALSE(table->Equals(*other_table, options));
311+
ASSERT_FALSE(table->Equals(*other_table, options.use_atol(true).atol(1e-5));
314312
}
315313

316314
TEST(TestTableEqualitySameAddress, NonFloatType) {

0 commit comments

Comments
 (0)