##// END OF EJS Templates
rust-dirstate: remove test case for DirsMultiset::new(Manifest, Some)...
Yuya Nishihara -
r43071:8ab1ae7f default
parent child Browse files
Show More
@@ -283,24 +283,6 b' mod tests {'
283
283
284 #[test]
284 #[test]
285 fn test_dirsmultiset_new_skip() {
285 fn test_dirsmultiset_new_skip() {
286 let input_vec = ["a/", "b/", "a/c", "a/d/"]
287 .iter()
288 .map(|e| e.as_bytes().to_vec())
289 .collect();
290 let expected_inner = [("", 2), ("a", 3), ("b", 1), ("a/d", 1)]
291 .iter()
292 .map(|(k, v)| (k.as_bytes().to_vec(), *v))
293 .collect();
294
295 // this was
296 // DirsMultiset::new(Manifest(&input_vec), Some(EntryState::Normal))
297 let new = DirsMultiset::from_manifest(&input_vec);
298 let expected = DirsMultiset {
299 inner: expected_inner,
300 };
301 // Skip does not affect a manifest
302 assert_eq!(expected, new);
303
304 let input_map = [
286 let input_map = [
305 ("a/", EntryState::Normal),
287 ("a/", EntryState::Normal),
306 ("a/b/", EntryState::Normal),
288 ("a/b/", EntryState::Normal),
General Comments 0
You need to be logged in to leave comments. Login now