diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-10-20 20:03:25 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-10-20 20:03:25 +0100 |
commit | c00339509d27061f77dac5eef33335095afea8ec (patch) | |
tree | 3a2288f9fabe209fdcbe4be3c714983944d22cf5 /crates/assists/src/tests | |
parent | 989de9e3094f54dba81ae59f4bbaaf3a8c0d67d1 (diff) | |
parent | 9883435e4e7f96a3e33ef3e38665189339db71eb (diff) |
Merge #6256
6256: Assist: replace string with char r=bnjjj a=bnjjj
close #6252
Co-authored-by: Benjamin Coenen <[email protected]>
Co-authored-by: Coenen Benjamin <[email protected]>
Diffstat (limited to 'crates/assists/src/tests')
-rw-r--r-- | crates/assists/src/tests/generated.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/crates/assists/src/tests/generated.rs b/crates/assists/src/tests/generated.rs index 7d5618263..acbf5b652 100644 --- a/crates/assists/src/tests/generated.rs +++ b/crates/assists/src/tests/generated.rs | |||
@@ -901,6 +901,23 @@ fn process(map: HashMap<String, String>) {} | |||
901 | } | 901 | } |
902 | 902 | ||
903 | #[test] | 903 | #[test] |
904 | fn doctest_replace_string_with_char() { | ||
905 | check_doc_test( | ||
906 | "replace_string_with_char", | ||
907 | r#####" | ||
908 | fn main() { | ||
909 | find("{<|>"); | ||
910 | } | ||
911 | "#####, | ||
912 | r#####" | ||
913 | fn main() { | ||
914 | find('{'); | ||
915 | } | ||
916 | "#####, | ||
917 | ) | ||
918 | } | ||
919 | |||
920 | #[test] | ||
904 | fn doctest_replace_unwrap_with_match() { | 921 | fn doctest_replace_unwrap_with_match() { |
905 | check_doc_test( | 922 | check_doc_test( |
906 | "replace_unwrap_with_match", | 923 | "replace_unwrap_with_match", |