def: make various punctuation misuses into errors (#7624)

Closes https://github.com/nushell/nushell/issues/7604
This commit is contained in:
Leon
2022-12-31 21:18:53 +10:00
committed by GitHub
parent 9b88ea5b60
commit 7aa2a57434
4 changed files with 159 additions and 19 deletions

View File

@ -316,7 +316,10 @@ fn default_value11() -> TestResult {
#[test]
fn default_value12() -> TestResult {
fail_test(r#"def foo [--x:int = "a"] { $x }"#, "default value not int")
fail_test(
r#"def foo [--x:int = "a"] { $x }"#,
"default value should be int",
)
}
#[test]