From 2808337112cb61d12bc98542ab513c33ca1bab4f Mon Sep 17 00:00:00 2001 From: Jonathan Turner Date: Tue, 18 Jun 2019 15:45:50 +1200 Subject: [PATCH] add lines and skip-while test --- tests/lines.out | 1 + tests/lines.txt | 3 +++ tests/tests.rs | 5 +++++ 3 files changed, 9 insertions(+) create mode 100644 tests/lines.out create mode 100644 tests/lines.txt diff --git a/tests/lines.out b/tests/lines.out new file mode 100644 index 0000000000..9abbdf551d --- /dev/null +++ b/tests/lines.out @@ -0,0 +1 @@ +rustyline diff --git a/tests/lines.txt b/tests/lines.txt new file mode 100644 index 0000000000..17ba32262b --- /dev/null +++ b/tests/lines.txt @@ -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 \ No newline at end of file diff --git a/tests/tests.rs b/tests/tests.rs index e3e0aaaabf..ad84d695f1 100644 --- a/tests/tests.rs +++ b/tests/tests.rs @@ -96,4 +96,9 @@ mod tests { fn enter() { test_helper("enter"); } + + #[test] + fn lines() { + test_helper("lines"); + } }