Skip to content

Commit ac43134

Browse files
committed
Refine test_toolchain_sort
1 parent 089d04b commit ac43134

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/toolchain/names.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -675,6 +675,9 @@ mod tests {
675675
"1.2.0-x86_64-unknown-linux-gnu",
676676
"1.8.0-x86_64-unknown-linux-gnu",
677677
"1.10.0-x86_64-unknown-linux-gnu",
678+
"bar(baz)",
679+
"foo#bar",
680+
"this.is.not-a+semver",
678681
]
679682
.into_iter()
680683
.map(|s| ToolchainName::try_from(s).unwrap())
@@ -688,6 +691,10 @@ mod tests {
688691
"1.10.0-x86_64-unknown-linux-gnu",
689692
"beta-x86_64-unknown-linux-gnu",
690693
"1.2.0-x86_64-unknown-linux-gnu",
694+
// https://github.com/rust-lang/rustup/issues/3517
695+
"foo#bar",
696+
"bar(baz)",
697+
"this.is.not-a+semver",
691698
]
692699
.into_iter()
693700
.map(|s| ToolchainName::try_from(s).unwrap())

0 commit comments

Comments
 (0)