forked from 1b-agent/opencadstudio-upstream
fix(command_line): preserve argument casing
This commit is contained in:
1 parent
43bdd18061
commit
ddbfb8f72b
4 files changed
+40
-16
No files matched your search
@@ -1429,6 +1429,16 @@ mod tests {
|
||||
assert!(m.iter().any(|c| c == "LINE"), "got {m:?}");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn submit_uppercases_only_the_command_verb() {
|
||||
let mut line = CommandLine::new();
|
||||
line.input = "open /home/u/My.dwg --PluginArg".to_string();
|
||||
assert_eq!(
|
||||
line.submit().as_deref(),
|
||||
Some("OPEN /home/u/My.dwg --PluginArg")
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn aliases_are_hidden_but_their_command_survives() {
|
||||
// The alias `L` is dropped from suggestions while `LINE` (its target)
|
||||
|
||||
Reference in new issue
Block a user