MCPcopy Create free account
hub / github.com/apache/arrow / TestUseAtol

Method TestUseAtol

cpp/src/arrow/scalar_test.cc:410–420  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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_)});

Callers 1

TYPED_TESTFunction · 0.80

Calls 3

DefaultsFunction · 0.70
EqualsMethod · 0.45
ApproxEqualsMethod · 0.45

Tested by

no test coverage detected