()
| 597 | |
| 598 | #[test] |
| 599 | fn test_try_decimal_cast_in_range() { |
| 600 | expect_cast( |
| 601 | ScalarValue::Decimal128(Some(12300), 5, 2), |
| 602 | DataType::Decimal128(3, 0), |
| 603 | ExpectedCast::Value(ScalarValue::Decimal128(Some(123), 3, 0)), |
| 604 | ); |
| 605 | |
| 606 | expect_cast( |
| 607 | ScalarValue::Decimal128(Some(12300), 5, 2), |
| 608 | DataType::Decimal128(8, 0), |
| 609 | ExpectedCast::Value(ScalarValue::Decimal128(Some(123), 8, 0)), |
| 610 | ); |
| 611 | |
| 612 | expect_cast( |
| 613 | ScalarValue::Decimal128(Some(12300), 5, 2), |
| 614 | DataType::Decimal128(8, 5), |
| 615 | ExpectedCast::Value(ScalarValue::Decimal128(Some(12300000), 8, 5)), |
| 616 | ); |
| 617 | } |
| 618 | |
| 619 | #[test] |
| 620 | fn test_try_decimal_cast_out_of_range() { |
nothing calls this directly
no test coverage detected
searching dependent graphs…