forked from extern/nushell
fix find tests (#928)
This commit is contained in:
parent
522a53af68
commit
c6dad0d5eb
@ -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
|
||||
"#
|
||||
));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user