From fc38603de8a96745684c740d15b64f72916f52e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20N=2E=20Robalino?= Date: Sun, 11 Aug 2019 13:18:42 -0500 Subject: [PATCH] Test sample changed to check behavior with strings on different operating systems. --- tests/filter_str_tests.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/filter_str_tests.rs b/tests/filter_str_tests.rs index 5d96bddecc..dd51080c6e 100644 --- a/tests/filter_str_tests.rs +++ b/tests/filter_str_tests.rs @@ -112,7 +112,7 @@ fn find_and_replaces() { "sample.toml", r#" [fortune.teller] - phone = "1-800 KATZ" + phone = "1-800-KATZ" "#, )]); @@ -122,7 +122,7 @@ fn find_and_replaces() { "open sample.toml | str fortune.teller.phone --find-replace KATZ \"5289\" | get fortune.teller.phone | echo $it" ); - assert_eq!(output, "1-800 5289"); + assert_eq!(output, "1-800-5289"); } #[test] @@ -132,7 +132,7 @@ fn find_and_replaces_without_passing_field() { "sample.toml", r#" [fortune.teller] - phone = "1-800 KATZ" + phone = "1-800-KATZ" "#, )], ); @@ -143,5 +143,5 @@ fn find_and_replaces_without_passing_field() { "open sample.toml | get fortune.teller.phone | str --find-replace KATZ \"5289\" | echo $it" ); - assert_eq!(output, "1-800 5289"); + assert_eq!(output, "1-800-5289"); }