()
| 2639 | |
| 2640 | #[test] |
| 2641 | fn test_from_iter_decimal256array() { |
| 2642 | let value1 = i256::from_i128(12345); |
| 2643 | let value2 = i256::from_i128(56789); |
| 2644 | |
| 2645 | let mut array: Decimal256Array = |
| 2646 | vec![Some(value1), None, Some(value2)].into_iter().collect(); |
| 2647 | array = array.with_precision_and_scale(76, 10).unwrap(); |
| 2648 | assert_eq!(array.len(), 3); |
| 2649 | assert_eq!(array.data_type(), &DataType::Decimal256(76, 10)); |
| 2650 | assert_eq!(value1, array.value(0)); |
| 2651 | assert!(!array.is_null(0)); |
| 2652 | assert!(array.is_null(1)); |
| 2653 | assert_eq!(value2, array.value(2)); |
| 2654 | assert!(!array.is_null(2)); |
| 2655 | } |
| 2656 | |
| 2657 | #[test] |
| 2658 | fn test_from_iter_decimal128array() { |
nothing calls this directly
no test coverage detected