aboutsummaryrefslogtreecommitdiff
path: root/crates/assists/src/tests
diff options
context:
space:
mode:
authorBenjamin Coenen <[email protected]>2020-10-17 15:08:25 +0100
committerBenjamin Coenen <[email protected]>2020-10-20 14:57:50 +0100
commitc22c0395780c548d7b7fb557b1879e998921b01d (patch)
treec0dc9fa0a4ce3879f7fa34daab264e01b20da349 /crates/assists/src/tests
parent62192cede3567df632c819656cc28ec3b2d2f5d6 (diff)
Assist: replace string with char
Signed-off-by: Benjamin Coenen <[email protected]>
Diffstat (limited to 'crates/assists/src/tests')
-rw-r--r--crates/assists/src/tests/generated.rs17
1 files changed, 17 insertions, 0 deletions
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
@@ -882,6 +882,23 @@ fn process(map: HashMap<String, String>) {}
882} 882}
883 883
884#[test] 884#[test]
885fn doctest_replace_string_with_char() {
886 check_doc_test(
887 "replace_string_with_char",
888 r#####"
889fn main() {
890 find("{<|>");
891}
892"#####,
893 r#####"
894fn main() {
895 find('{');
896}
897"#####,
898 )
899}
900
901#[test]
885fn doctest_replace_unwrap_with_match() { 902fn doctest_replace_unwrap_with_match() {
886 check_doc_test( 903 check_doc_test(
887 "replace_unwrap_with_match", 904 "replace_unwrap_with_match",