From c6dad0d5ebfbacc8801619998e5c5c16f50d49ca Mon Sep 17 00:00:00 2001 From: Darren Schroeder <343840+fdncred@users.noreply.github.com> Date: Fri, 4 Feb 2022 10:47:24 -0600 Subject: [PATCH] fix find tests (#928) --- crates/nu-command/tests/commands/find.rs | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/crates/nu-command/tests/commands/find.rs b/crates/nu-command/tests/commands/find.rs index 959257ea9c..2dcfb7d925 100644 --- a/crates/nu-command/tests/commands/find.rs +++ b/crates/nu-command/tests/commands/find.rs @@ -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 "# ));