add test for let with declared type (thx @amtoine)

This commit is contained in:
Devyn Cairns 2024-07-21 04:09:59 -07:00
parent c12af98ac2
commit aa6bff833b
No known key found for this signature in database

View File

@ -23,6 +23,13 @@ fn let_takes_pipeline() {
assert_eq!(actual.out, "11");
}
#[test]
fn let_takes_pipeline_with_declared_type() {
let actual = nu!(r#"let x: list<string> = [] | append "hello world"; print $x.0"#);
assert_eq!(actual.out, "hello world");
}
#[test]
fn let_pipeline_allows_in() {
let actual =