aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorStefan Kangas2023-01-04 06:30:13 +0100
committerStefan Kangas2023-01-04 06:30:13 +0100
commit1ddd31bf9843c0453af92a09f98935cfcbb4e250 (patch)
tree169886ea0c3694832b5db6e355240a1bc4639435 /test
parent0e1b03bbb87d0b09ba841c0318fce77533914208 (diff)
parent0d98fac6bbc19c7728d42d6196adf4d392ba3132 (diff)
downloademacs-1ddd31bf9843c0453af92a09f98935cfcbb4e250.tar.gz
emacs-1ddd31bf9843c0453af92a09f98935cfcbb4e250.zip
Merge from origin/emacs-29
0d98fac6bbc (ruby-ts-add-log-current-function): Fix when between two ... da69f116bfc ; * doc/lispref/positions.texi (List Motion): Minor wordi... 0b0eae0bf76 ; Improve documentation of 'treesit-language-source-alist' ae0d218d0b3 ; * etc/NEWS: Mention treesit-install-language-grammar. de3df3bc51e * lisp/vc/vc-git.el (vc-git-checkin): Pass vc-git-diff-sw... # Conflicts: # etc/NEWS
Diffstat (limited to 'test')
-rw-r--r--test/lisp/progmodes/ruby-mode-tests.el3
-rw-r--r--test/lisp/progmodes/ruby-ts-mode-tests.el3
2 files changed, 6 insertions, 0 deletions
diff --git a/test/lisp/progmodes/ruby-mode-tests.el b/test/lisp/progmodes/ruby-mode-tests.el
index 9687231dbfa..8a75c83d2c3 100644
--- a/test/lisp/progmodes/ruby-mode-tests.el
+++ b/test/lisp/progmodes/ruby-mode-tests.el
@@ -537,9 +537,12 @@ VALUES-PLIST is a list with alternating index and value elements."
537 | def foo 537 | def foo
538 | end 538 | end
539 | _ 539 | _
540 | def bar
541 | end
540 | end 542 | end
541 |end") 543 |end")
542 (search-backward "_") 544 (search-backward "_")
545 (delete-char 1)
543 (should (string= (ruby-add-log-current-method)"M::C")))) 546 (should (string= (ruby-add-log-current-method)"M::C"))))
544 547
545(ert-deftest ruby-add-log-current-method-in-singleton-class () 548(ert-deftest ruby-add-log-current-method-in-singleton-class ()
diff --git a/test/lisp/progmodes/ruby-ts-mode-tests.el b/test/lisp/progmodes/ruby-ts-mode-tests.el
index aa1ab1e2605..b2c990f8e56 100644
--- a/test/lisp/progmodes/ruby-ts-mode-tests.el
+++ b/test/lisp/progmodes/ruby-ts-mode-tests.el
@@ -141,9 +141,12 @@ The whitespace before and including \"|\" on each line is removed."
141 | def foo 141 | def foo
142 | end 142 | end
143 | _ 143 | _
144 | def bar
145 | end
144 | end 146 | end
145 |end") 147 |end")
146 (search-backward "_") 148 (search-backward "_")
149 (delete-char 1)
147 (should (string= (ruby-ts-add-log-current-function) "M::C")))) 150 (should (string= (ruby-ts-add-log-current-function) "M::C"))))
148 151
149(ert-deftest ruby-ts-add-log-current-method-in-singleton-class () 152(ert-deftest ruby-ts-add-log-current-method-in-singleton-class ()