project search: make sorting comparator comply with Ord preconditions (#17604)
Closes #17493 /cc @SomeoneToIgnore /cc @ConradIrwin Release Notes: - N/A
This commit is contained in:
parent
2fc74a1b71
commit
56bc3c36ad
3 changed files with 65 additions and 63 deletions
|
@ -3519,9 +3519,9 @@ mod tests {
|
|||
" > .git",
|
||||
" > a",
|
||||
" v b",
|
||||
" > [EDITOR: ''] <== selected",
|
||||
" > 3",
|
||||
" > 4",
|
||||
" > [EDITOR: ''] <== selected",
|
||||
" a-different-filename.tar.gz",
|
||||
" > C",
|
||||
" .dockerignore",
|
||||
|
@ -3542,10 +3542,10 @@ mod tests {
|
|||
" > .git",
|
||||
" > a",
|
||||
" v b",
|
||||
" > [PROCESSING: 'new-dir']",
|
||||
" > 3 <== selected",
|
||||
" > 3",
|
||||
" > 4",
|
||||
" a-different-filename.tar.gz",
|
||||
" > [PROCESSING: 'new-dir']",
|
||||
" a-different-filename.tar.gz <== selected",
|
||||
" > C",
|
||||
" .dockerignore",
|
||||
]
|
||||
|
@ -3559,10 +3559,10 @@ mod tests {
|
|||
" > .git",
|
||||
" > a",
|
||||
" v b",
|
||||
" > 3 <== selected",
|
||||
" > 3",
|
||||
" > 4",
|
||||
" > new-dir",
|
||||
" a-different-filename.tar.gz",
|
||||
" a-different-filename.tar.gz <== selected",
|
||||
" > C",
|
||||
" .dockerignore",
|
||||
]
|
||||
|
@ -3576,10 +3576,10 @@ mod tests {
|
|||
" > .git",
|
||||
" > a",
|
||||
" v b",
|
||||
" > [EDITOR: '3'] <== selected",
|
||||
" > 3",
|
||||
" > 4",
|
||||
" > new-dir",
|
||||
" a-different-filename.tar.gz",
|
||||
" [EDITOR: 'a-different-filename.tar.gz'] <== selected",
|
||||
" > C",
|
||||
" .dockerignore",
|
||||
]
|
||||
|
@ -3594,10 +3594,10 @@ mod tests {
|
|||
" > .git",
|
||||
" > a",
|
||||
" v b",
|
||||
" > 3 <== selected",
|
||||
" > 3",
|
||||
" > 4",
|
||||
" > new-dir",
|
||||
" a-different-filename.tar.gz",
|
||||
" a-different-filename.tar.gz <== selected",
|
||||
" > C",
|
||||
" .dockerignore",
|
||||
]
|
||||
|
@ -3844,8 +3844,8 @@ mod tests {
|
|||
&[
|
||||
//
|
||||
"v root1",
|
||||
" one.two.txt <== selected",
|
||||
" one.txt",
|
||||
" one.txt <== selected",
|
||||
" one.two.txt",
|
||||
]
|
||||
);
|
||||
|
||||
|
@ -3862,9 +3862,9 @@ mod tests {
|
|||
&[
|
||||
//
|
||||
"v root1",
|
||||
" one.two copy.txt <== selected",
|
||||
" one.two.txt",
|
||||
" one.txt",
|
||||
" one copy.txt <== selected",
|
||||
" one.two.txt",
|
||||
]
|
||||
);
|
||||
|
||||
|
@ -3878,10 +3878,10 @@ mod tests {
|
|||
&[
|
||||
//
|
||||
"v root1",
|
||||
" one.two copy 1.txt <== selected",
|
||||
" one.two copy.txt",
|
||||
" one.two.txt",
|
||||
" one.txt",
|
||||
" one copy.txt",
|
||||
" one copy 1.txt <== selected",
|
||||
" one.two.txt",
|
||||
]
|
||||
);
|
||||
}
|
||||
|
@ -4074,8 +4074,8 @@ mod tests {
|
|||
" > b",
|
||||
" four.txt",
|
||||
" one.txt",
|
||||
" three copy.txt <== selected",
|
||||
" three.txt",
|
||||
" three copy.txt <== selected",
|
||||
" two.txt",
|
||||
]
|
||||
);
|
||||
|
@ -4105,8 +4105,8 @@ mod tests {
|
|||
" > b",
|
||||
" four.txt",
|
||||
" one.txt",
|
||||
" three copy.txt",
|
||||
" three.txt",
|
||||
" three copy.txt",
|
||||
" two.txt",
|
||||
]
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue