()
| 2328 | |
| 2329 | #[test] |
| 2330 | fn test_access_array_concurrently() { |
| 2331 | let a = Int32Array::from(vec![5, 6, 7, 8, 9]); |
| 2332 | let ret = std::thread::spawn(move || a.value(3)).join(); |
| 2333 | |
| 2334 | assert!(ret.is_ok()); |
| 2335 | assert_eq!(8, ret.ok().unwrap()); |
| 2336 | } |
| 2337 | |
| 2338 | #[test] |
| 2339 | fn test_primitive_array_creation() { |