mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 08:16:32 +02:00
fix(completion): full set of operators for type any (#15303)
# Description As elaborated [here](https://github.com/nushell/nushell/issues/13676#issuecomment-2717096417), a full set probably is a more thoughtful approximation for unknown types. # User-Facing Changes # Tests + Formatting Adjusted # After Submitting
This commit is contained in:
@ -2345,6 +2345,13 @@ fn assignment_operator_completions(mut custom_completer: NuCompleter) {
|
||||
let expected: Vec<_> = vec!["++", "++="];
|
||||
let suggestions = custom_completer.complete("$env.config.keybindings +", 25);
|
||||
match_suggestions(&expected, &suggestions);
|
||||
|
||||
// all operators for type any
|
||||
let suggestions = custom_completer.complete("ls | where name ", 16);
|
||||
assert_eq!(30, suggestions.len());
|
||||
let expected: Vec<_> = vec!["starts-with"];
|
||||
let suggestions = custom_completer.complete("ls | where name starts", 22);
|
||||
match_suggestions(&expected, &suggestions);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
Reference in New Issue
Block a user