Flush stmts (#584)

* Flush the stmt via table to the screen

* Fix test
This commit is contained in:
JT
2021-12-27 07:21:24 +11:00
committed by GitHub
parent 89a000a572
commit e62e0fb679
2 changed files with 55 additions and 2 deletions

View File

@ -3,7 +3,7 @@ use crate::tests::{fail_test, run_test, TestResult};
#[test]
fn concrete_variable_assignment() -> TestResult {
run_test(
"let x = (1..100 | each { |y| $y + 100 }); $x | length; $x | length",
"let x = (1..100 | each { |y| $y + 100 }); let y = ($x | length); $x | length",
"100",
)
}