aboutsummaryrefslogtreecommitdiffstats
path: root/test/lisp/progmodes/python-tests.el
diff options
context:
space:
mode:
Diffstat (limited to 'test/lisp/progmodes/python-tests.el')
-rw-r--r--test/lisp/progmodes/python-tests.el24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/lisp/progmodes/python-tests.el b/test/lisp/progmodes/python-tests.el
index ec0a836cb8f..898e2b036e0 100644
--- a/test/lisp/progmodes/python-tests.el
+++ b/test/lisp/progmodes/python-tests.el
@@ -3204,6 +3204,30 @@ d = '''d'''
3204 (python-tests-look-at "c'") 3204 (python-tests-look-at "c'")
3205 (pos-eol)))))) 3205 (pos-eol))))))
3206 3206
3207(ert-deftest python-nav-end-of-statement-5 ()
3208 "Test long multi-line string (Bug#75387)."
3209 (let* ((line (format "%s\n" (make-string 80 ?a)))
3210 (lines (apply #'concat (make-list 50 line))))
3211 (python-tests-with-temp-buffer
3212 (concat
3213 "
3214s = '''
3215"
3216 lines
3217 "\\'''"
3218 lines
3219 "'''
3220a = 1
3221")
3222 (python-tests-look-at "s = '''")
3223 (should (= (save-excursion
3224 (python-nav-end-of-statement)
3225 (point))
3226 (save-excursion
3227 (python-tests-look-at "a = 1")
3228 (forward-line -1)
3229 (pos-eol)))))))
3230
3207(ert-deftest python-nav-forward-statement-1 () 3231(ert-deftest python-nav-forward-statement-1 ()
3208 (python-tests-with-temp-buffer 3232 (python-tests-with-temp-buffer
3209 " 3233 "