MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_hash

Function test_hash

atomic-core/src/diff/algorithm.rs:218–226  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

216
217 #[test]
218 fn test_hash() {
219 use std::collections::HashSet;
220 let mut set = HashSet::new();
221 set.insert(Algorithm::Myers);
222 set.insert(Algorithm::Patience);
223 assert!(set.contains(&Algorithm::Myers));
224 assert!(set.contains(&Algorithm::Patience));
225 assert_eq!(set.len(), 2);
226 }
227}

Callers

nothing calls this directly

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected