mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 17:24:23 +00:00
Add python-mode tests for align.el
* test/lisp/align-tests.el (align-python): New test. * test/lisp/align-resources/python-mode.erts: New file.
This commit is contained in:
parent
3c44d7a1b7
commit
daa174e56b
2 changed files with 33 additions and 0 deletions
29
test/lisp/align-resources/python-mode.erts
Normal file
29
test/lisp/align-resources/python-mode.erts
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
Name: align assignments
|
||||
|
||||
=-=
|
||||
foo = "bar"
|
||||
x = 1
|
||||
zzzzz = True
|
||||
y = None
|
||||
=-=
|
||||
foo = "bar"
|
||||
x = 1
|
||||
zzzzz = True
|
||||
y = None
|
||||
=-=-=
|
||||
|
||||
Name: python-chain-logic and basic-line-continuation
|
||||
|
||||
=-=
|
||||
if foo or\
|
||||
b and \
|
||||
bcxxx and \
|
||||
c:
|
||||
pass
|
||||
=-=
|
||||
if foo or \
|
||||
b and \
|
||||
bcxxx and \
|
||||
c:
|
||||
pass
|
||||
=-=-=
|
||||
|
|
@ -43,6 +43,10 @@
|
|||
(ert-test-erts-file (ert-resource-file "java-mode.erts")
|
||||
(test-align-transform-fun #'java-mode)))
|
||||
|
||||
(ert-deftest align-python ()
|
||||
(ert-test-erts-file (ert-resource-file "python-mode.erts")
|
||||
(test-align-transform-fun #'python-mode)))
|
||||
|
||||
(ert-deftest align-toml ()
|
||||
(let ((indent-tabs-mode nil))
|
||||
(ert-test-erts-file (ert-resource-file "conf-toml-mode.erts")
|
||||
|
|
|
|||
Loading…
Reference in a new issue