diff options
Diffstat (limited to 'rust-mode-tests.el')
| -rw-r--r-- | rust-mode-tests.el | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/rust-mode-tests.el b/rust-mode-tests.el index b234771..e2e1218 100644 --- a/rust-mode-tests.el +++ b/rust-mode-tests.el @@ -245,10 +245,6 @@ fn bar() { }" /// even more. fn bar() { }" 14 85)) -(defun test-dbg-wrap (initial expected position &optional end) - (with-temp-buffer - (insert initial))) - (defun test-auto-fill (initial position inserted expected) (rust-test-manip-code initial @@ -3186,6 +3182,13 @@ impl Two<'a> { (ert-deftest rust-test-dbg-uwnrap-on-dbg-start () (rust-test-dbg-unwrap 13)) +(ert-deftest rust-test-dbg-unwrap-inside-string-literal () + (rust-test-manip-code + "let x = \"foo, bar\"";" + 15 + #'rust-dbg-wrap-or-unwrap + "let x = dbg!(\"foo, bar\")")) + (when (executable-find rust-cargo-bin) (ert-deftest rust-test-project-located () (lexical-let* ((test-dir (expand-file-name "test-project/" default-directory)) |
