| 677 | } |
| 678 | |
| 679 | void TestCast() { |
| 680 | const auto ty = std::make_shared<T>(3, 2); |
| 681 | const auto pi = ScalarType(ValueType(314), ty); |
| 682 | |
| 683 | ASSERT_OK_AND_ASSIGN(auto casted, Cast(pi, utf8())); |
| 684 | ASSERT_TRUE(casted.scalar()->Equals(StringScalar("3.14"))) |
| 685 | << casted.scalar()->ToString(); |
| 686 | } |
| 687 | }; |
| 688 | |
| 689 | TYPED_TEST_SUITE(TestDecimalScalar, DecimalArrowTypes); |
nothing calls this directly
no test coverage detected