add test for let with declared type (thx @amtoine)
This commit is contained in:
parent
c12af98ac2
commit
aa6bff833b
|
@ -23,6 +23,13 @@ fn let_takes_pipeline() {
|
||||||
assert_eq!(actual.out, "11");
|
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]
|
#[test]
|
||||||
fn let_pipeline_allows_in() {
|
fn let_pipeline_allows_in() {
|
||||||
let actual =
|
let actual =
|
||||||
|
|
Loading…
Reference in New Issue
Block a user