mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 14:40:06 +02:00
Remove parser keywords label from commands that do not need it (#8780)
This commit is contained in:
@ -126,6 +126,18 @@ fn alias_invalid_expression() {
|
||||
assert!(actual.err.contains("cant_alias_expression"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn alias_if() {
|
||||
let actual = nu!(r#" alias spam = if true { 'spam' } else { 'eggs' }; spam "#);
|
||||
assert_eq!(actual.out, "spam");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn alias_match() {
|
||||
let actual = nu!(r#" alias spam = match 3 { 1..10 => 'yes!' }; spam "#);
|
||||
assert_eq!(actual.out, "yes!");
|
||||
}
|
||||
|
||||
// Issue https://github.com/nushell/nushell/issues/8103
|
||||
#[test]
|
||||
fn alias_multiword_name() {
|
||||
|
Reference in New Issue
Block a user