mirror of
https://github.com/nushell/nushell
synced 2024-12-27 13:33:16 +00:00
fix find tests (#928)
This commit is contained in:
parent
522a53af68
commit
c6dad0d5eb
1 changed files with 4 additions and 10 deletions
|
@ -14,14 +14,12 @@ fn find_with_list_search_with_string() {
|
||||||
assert_eq!(actual.out, "moe");
|
assert_eq!(actual.out, "moe");
|
||||||
}
|
}
|
||||||
|
|
||||||
// FIXME: jt: needs more work
|
|
||||||
#[ignore]
|
|
||||||
#[test]
|
#[test]
|
||||||
fn find_with_list_search_with_char() {
|
fn find_with_list_search_with_char() {
|
||||||
let actual = nu!(
|
let actual = nu!(
|
||||||
cwd: ".", pipeline(
|
cwd: ".", pipeline(
|
||||||
r#"
|
r#"
|
||||||
[moe larry curly] | find l | to json
|
[moe larry curly] | find l | to json -r
|
||||||
"#
|
"#
|
||||||
));
|
));
|
||||||
|
|
||||||
|
@ -64,8 +62,6 @@ fn find_with_string_search_with_string_not_found() {
|
||||||
assert_eq!(actual.out, "");
|
assert_eq!(actual.out, "");
|
||||||
}
|
}
|
||||||
|
|
||||||
// FIXME: jt: needs more work
|
|
||||||
#[ignore]
|
|
||||||
#[test]
|
#[test]
|
||||||
fn find_with_filepath_search_with_string() {
|
fn find_with_filepath_search_with_string() {
|
||||||
Playground::setup("filepath_test_1", |dirs, sandbox| {
|
Playground::setup("filepath_test_1", |dirs, sandbox| {
|
||||||
|
@ -82,16 +78,14 @@ fn find_with_filepath_search_with_string() {
|
||||||
ls
|
ls
|
||||||
| get name
|
| get name
|
||||||
| find arep
|
| find arep
|
||||||
| to json
|
| to json -r
|
||||||
"#
|
"#
|
||||||
));
|
));
|
||||||
|
|
||||||
assert_eq!(actual.out, r#""arepas.clu""#);
|
assert_eq!(actual.out, r#"["arepas.clu"]"#);
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// FIXME: jt: needs more work
|
|
||||||
#[ignore]
|
|
||||||
#[test]
|
#[test]
|
||||||
fn find_with_filepath_search_with_multiple_patterns() {
|
fn find_with_filepath_search_with_multiple_patterns() {
|
||||||
Playground::setup("filepath_test_2", |dirs, sandbox| {
|
Playground::setup("filepath_test_2", |dirs, sandbox| {
|
||||||
|
@ -108,7 +102,7 @@ fn find_with_filepath_search_with_multiple_patterns() {
|
||||||
ls
|
ls
|
||||||
| get name
|
| get name
|
||||||
| find arep ami
|
| find arep ami
|
||||||
| to json
|
| to json -r
|
||||||
"#
|
"#
|
||||||
));
|
));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue