Mercurial > hg
changeset 42803:8ab1ae7f1cf4
rust-dirstate: remove test case for DirsMultiset::new(Manifest, Some)
It's no longer possible.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 17 Aug 2019 18:28:55 +0900 |
parents | 2e1f74cc3350 |
children | 7b80ad5af239 |
files | rust/hg-core/src/dirstate/dirs_multiset.rs |
diffstat | 1 files changed, 0 insertions(+), 18 deletions(-) [+] |
line wrap: on
line diff
--- a/rust/hg-core/src/dirstate/dirs_multiset.rs Sat Aug 17 18:25:29 2019 +0900 +++ b/rust/hg-core/src/dirstate/dirs_multiset.rs Sat Aug 17 18:28:55 2019 +0900 @@ -283,24 +283,6 @@ #[test] fn test_dirsmultiset_new_skip() { - let input_vec = ["a/", "b/", "a/c", "a/d/"] - .iter() - .map(|e| e.as_bytes().to_vec()) - .collect(); - let expected_inner = [("", 2), ("a", 3), ("b", 1), ("a/d", 1)] - .iter() - .map(|(k, v)| (k.as_bytes().to_vec(), *v)) - .collect(); - - // this was - // DirsMultiset::new(Manifest(&input_vec), Some(EntryState::Normal)) - let new = DirsMultiset::from_manifest(&input_vec); - let expected = DirsMultiset { - inner: expected_inner, - }; - // Skip does not affect a manifest - assert_eq!(expected, new); - let input_map = [ ("a/", EntryState::Normal), ("a/b/", EntryState::Normal),