fix find tests (#928)

This commit is contained in:
Darren Schroeder 2022-02-04 10:47:24 -06:00 committed by GitHub
parent 522a53af68
commit c6dad0d5eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,14 +14,12 @@ fn find_with_list_search_with_string() {
assert_eq!(actual.out, "moe");
}
// FIXME: jt: needs more work
#[ignore]
#[test]
fn find_with_list_search_with_char() {
let actual = nu!(
cwd: ".", pipeline(
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, "");
}
// FIXME: jt: needs more work
#[ignore]
#[test]
fn find_with_filepath_search_with_string() {
Playground::setup("filepath_test_1", |dirs, sandbox| {
@ -82,16 +78,14 @@ fn find_with_filepath_search_with_string() {
ls
| get name
| 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]
fn find_with_filepath_search_with_multiple_patterns() {
Playground::setup("filepath_test_2", |dirs, sandbox| {
@ -108,7 +102,7 @@ fn find_with_filepath_search_with_multiple_patterns() {
ls
| get name
| find arep ami
| to json
| to json -r
"#
));