mirror of
https://github.com/nushell/nushell.git
synced 2025-07-01 07:00:37 +02:00
Fix rest parsing (#4765)
* More nuon tests, fix table print * Fix rest type parsing
This commit is contained in:
@ -339,3 +339,13 @@ fn string_escape() -> TestResult {
|
||||
fn string_escape_interpolation() -> TestResult {
|
||||
run_test(r#"$"\u015B(char hamburger)abc""#, "ś≡abc")
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn proper_rest_types() -> TestResult {
|
||||
run_test(
|
||||
r#"def foo [--verbose(-v): bool, # my test flag
|
||||
...rest: int # my rest comment
|
||||
] { if $verbose { print "verbose!" } else { print "not verbose!" } }; foo"#,
|
||||
"not verbose!",
|
||||
)
|
||||
}
|
||||
|
Reference in New Issue
Block a user