MCPcopy Create free account
hub / github.com/ashvardanian/StringZilla / intersection_debug

Function intersection_debug

rust/stringzilla.rs:3835–3849  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3833
3834 #[test]
3835 fn intersection_debug() {
3836 println!("Starting intersection debug test...");
3837
3838 let set1 = ["banana", "apple", "cherry"];
3839 let set2 = ["cherry", "orange", "pineapple", "banana"];
3840 let mut positions1 = [0; 3];
3841 let mut positions2 = [0; 3];
3842
3843 println!("About to call intersection function...");
3844 let n = intersection(&set1, &set2, 0, &mut positions1, &mut positions2).expect("intersect failed");
3845
3846 println!("Intersection found {} common elements", n);
3847 assert!(n == 2);
3848 println!("Test passed!");
3849 }
3850
3851 #[test]
3852 fn sha256_empty() {

Callers

nothing calls this directly

Calls 1

intersectionFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…