From c22c0395780c548d7b7fb557b1879e998921b01d Mon Sep 17 00:00:00 2001 From: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com> Date: Sat, 17 Oct 2020 16:08:25 +0200 Subject: Assist: replace string with char Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com> --- crates/assists/src/tests/generated.rs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'crates/assists/src/tests') diff --git a/crates/assists/src/tests/generated.rs b/crates/assists/src/tests/generated.rs index 41f536574..6fb2a7cac 100644 --- a/crates/assists/src/tests/generated.rs +++ b/crates/assists/src/tests/generated.rs @@ -881,6 +881,23 @@ fn process(map: HashMap) {} ) } +#[test] +fn doctest_replace_string_with_char() { + check_doc_test( + "replace_string_with_char", + r#####" +fn main() { + find("{<|>"); +} +"#####, + r#####" +fn main() { + find('{'); +} +"#####, + ) +} + #[test] fn doctest_replace_unwrap_with_match() { check_doc_test( -- cgit v1.2.3