asserts that the set contains the expected strings, in the same order
(set: ArrowBytesViewSet, expected: &[Option<&str>])
| 532 | |
| 533 | // asserts that the set contains the expected strings, in the same order |
| 534 | fn assert_set(set: ArrowBytesViewSet, expected: &[Option<&str>]) { |
| 535 | let strings = set.into_state(); |
| 536 | let strings = strings.as_string_view(); |
| 537 | let state = strings.into_iter().collect::<Vec<_>>(); |
| 538 | assert_eq!(state, expected); |
| 539 | } |
| 540 | |
| 541 | #[test] |
| 542 | fn string_view_set_empty() { |
searching dependent graphs…