| 408 | } |
| 409 | |
| 410 | void TestUseAtol() { |
| 411 | auto options = EqualOptions::Defaults().atol(0.2f); |
| 412 | |
| 413 | ASSERT_FALSE(scalar_val_->Equals(*scalar_other_)); |
| 414 | ASSERT_TRUE(scalar_val_->Equals(*scalar_other_, options)); |
| 415 | ARROW_SUPPRESS_DEPRECATION_WARNING |
| 416 | ASSERT_TRUE(scalar_val_->Equals(*scalar_other_, options.use_atol(true))); |
| 417 | ASSERT_FALSE(scalar_val_->Equals(*scalar_other_, options.use_atol(false))); |
| 418 | ARROW_UNSUPPRESS_DEPRECATION_WARNING |
| 419 | ASSERT_TRUE(scalar_val_->ApproxEquals(*scalar_other_, options)); |
| 420 | } |
| 421 | |
| 422 | void TestStructOf() { |
| 423 | auto ty = struct_({field("float", type_)}); |
no test coverage detected