mirror of
https://github.com/nushell/nushell
synced 2024-12-28 14:03:09 +00:00
add lines and skip-while test
This commit is contained in:
parent
a72e92207b
commit
2808337112
3 changed files with 9 additions and 0 deletions
1
tests/lines.out
Normal file
1
tests/lines.out
Normal file
|
@ -0,0 +1 @@
|
||||||
|
rustyline
|
3
tests/lines.txt
Normal file
3
tests/lines.txt
Normal 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
|
|
@ -96,4 +96,9 @@ mod tests {
|
||||||
fn enter() {
|
fn enter() {
|
||||||
test_helper("enter");
|
test_helper("enter");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn lines() {
|
||||||
|
test_helper("lines");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue