()
| 599 | |
| 600 | #[test] |
| 601 | fn test_round_trip() { |
| 602 | // create an array natively |
| 603 | let array = Int32Array::from(vec![1, 2, 3]); |
| 604 | |
| 605 | // export it |
| 606 | let (array, schema) = to_ffi(&array.into_data()).unwrap(); |
| 607 | |
| 608 | // (simulate consumer) import it |
| 609 | let array = Int32Array::from(unsafe { from_ffi(array, &schema) }.unwrap()); |
| 610 | |
| 611 | // verify |
| 612 | assert_eq!(array, Int32Array::from(vec![1, 2, 3])); |
| 613 | } |
| 614 | |
| 615 | #[test] |
| 616 | fn test_import() { |
no test coverage detected