()
| 330 | |
| 331 | #[test] |
| 332 | fn float64_column_basic() { |
| 333 | let mut col = Float64Column::new(10); |
| 334 | col.set(3, 0.75); |
| 335 | col.set(7, 2.5); |
| 336 | |
| 337 | assert_eq!(col.get(3), Some(0.75)); |
| 338 | assert_eq!(col.get(7), Some(2.5)); |
| 339 | assert_eq!(col.get(0), None); |
| 340 | assert_eq!(col.get_or(0, 0.0), 0.0); |
| 341 | assert_eq!(col.count_present(), 2); |
| 342 | } |
| 343 | |
| 344 | #[test] |
| 345 | fn int64_column_basic() { |