add lines and skip-while test

This commit is contained in:
Jonathan Turner 2019-06-18 15:45:50 +12:00
parent a72e92207b
commit 2808337112
3 changed files with 9 additions and 0 deletions

1
tests/lines.out Normal file
View File

@ -0,0 +1 @@
rustyline

3
tests/lines.txt Normal file
View File

@ -0,0 +1,3 @@
cd tests
open test.toml --raw | lines | skip-while $it != "[dependencies]" | skip 1 | first 1 | split-column "=" | get Column1 | echo $it
exit

View File

@ -96,4 +96,9 @@ mod tests {
fn enter() { fn enter() {
test_helper("enter"); test_helper("enter");
} }
#[test]
fn lines() {
test_helper("lines");
}
} }