mirror of
https://github.com/nushell/nushell.git
synced 2024-12-22 23:23:12 +01:00
add lines and skip-while test
This commit is contained in:
parent
a72e92207b
commit
2808337112
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 New Issue
Block a user