diff options
| author | YAMAMOTO Mitsuharu | 2019-05-23 10:53:23 +0900 |
|---|---|---|
| committer | YAMAMOTO Mitsuharu | 2019-05-23 10:53:23 +0900 |
| commit | b40dde705af4d53853de6185a2468153b442dc9a (patch) | |
| tree | e8dabba695163c2d07439fad6accff761f8f714c /test/lisp/progmodes/python-tests.el | |
| parent | 5d7dafacf4afc888511649f6fc24c28210cd0dfc (diff) | |
| parent | 03feb9376b54c489e24478954a11061e9b0d6db7 (diff) | |
| download | emacs-b40dde705af4d53853de6185a2468153b442dc9a.tar.gz emacs-b40dde705af4d53853de6185a2468153b442dc9a.zip | |
Merge branch 'master' into harfbuzz
Diffstat (limited to 'test/lisp/progmodes/python-tests.el')
| -rw-r--r-- | test/lisp/progmodes/python-tests.el | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/lisp/progmodes/python-tests.el b/test/lisp/progmodes/python-tests.el index b940f45bb90..a5179097172 100644 --- a/test/lisp/progmodes/python-tests.el +++ b/test/lisp/progmodes/python-tests.el | |||
| @@ -260,6 +260,19 @@ foo = long_function_name( | |||
| 260 | (should (eq (car (python-indent-context)) :inside-paren-newline-start)) | 260 | (should (eq (car (python-indent-context)) :inside-paren-newline-start)) |
| 261 | (should (= (python-indent-calculate-indentation) 4)))) | 261 | (should (= (python-indent-calculate-indentation) 4)))) |
| 262 | 262 | ||
| 263 | (ert-deftest python-indent-hanging-close-paren () | ||
| 264 | "Like first pep8 case, but with hanging close paren." ;; See Bug#20742. | ||
| 265 | (python-tests-with-temp-buffer | ||
| 266 | "\ | ||
| 267 | foo = long_function_name(var_one, var_two, | ||
| 268 | var_three, var_four | ||
| 269 | ) | ||
| 270 | " | ||
| 271 | (should (= (python-indent-calculate-indentation) 0)) | ||
| 272 | (python-tests-look-at ")") | ||
| 273 | (should (eq (car (python-indent-context)) :inside-paren-at-closing-paren)) | ||
| 274 | (should (= (python-indent-calculate-indentation) 25)))) | ||
| 275 | |||
| 263 | (ert-deftest python-indent-base-case () | 276 | (ert-deftest python-indent-base-case () |
| 264 | "Check base case does not trigger errors." | 277 | "Check base case does not trigger errors." |
| 265 | (python-tests-with-temp-buffer | 278 | (python-tests-with-temp-buffer |