MCPcopy Create free account
hub / github.com/apache/arrow-rs / test_decimal_null

Function test_decimal_null

arrow/tests/array_equal.rs:619–629  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

617// Test the case where null_count > 0
618#[test]
619fn test_decimal_null() {
620 let a = create_decimal_array(vec![Some(8_887_000_000), None, Some(-8_887_000_000)]);
621 let b = create_decimal_array(vec![Some(8_887_000_000), None, Some(-8_887_000_000)]);
622 test_equal(&a, &b, true);
623
624 let b = create_decimal_array(vec![Some(8_887_000_000), Some(-8_887_000_000), None]);
625 test_equal(&a, &b, false);
626
627 let b = create_decimal_array(vec![Some(15_887_000_000), None, Some(-8_887_000_000)]);
628 test_equal(&a, &b, false);
629}
630
631#[test]
632fn test_decimal_offsets() {

Callers

nothing calls this directly

Calls 2

test_equalFunction · 0.85
create_decimal_arrayFunction · 0.70

Tested by

no test coverage detected