aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorGlenn Morris2014-09-02 21:21:40 -0700
committerGlenn Morris2014-09-02 21:21:40 -0700
commit62fca47221fc9d248511cd94fbcb41ddb46763e6 (patch)
treed039e0d0580f884abbfd7515b63ef7bc4aabeaaa /test
parente6769f18909edfd1bbf6473a1f754ab29e2fb114 (diff)
parentaf86b05fd4b79c3d1c3b71c6193c4295a1265594 (diff)
downloademacs-62fca47221fc9d248511cd94fbcb41ddb46763e6.tar.gz
emacs-62fca47221fc9d248511cd94fbcb41ddb46763e6.zip
Merge from emacs-24; up to 2014-07-04T02:28:54Z!dmantipov@yandex.ru
Diffstat (limited to 'test')
-rw-r--r--test/ChangeLog5
-rw-r--r--test/automated/python-tests.el14
-rw-r--r--test/indent/scheme.scm9
3 files changed, 28 insertions, 0 deletions
diff --git a/test/ChangeLog b/test/ChangeLog
index 70c2af66194..5b7142845e7 100644
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@ -1,3 +1,8 @@
12014-09-03 Fabián Ezequiel Gallina <fgallina@gnu.org>
2
3 * automated/python-tests.el (python-indent-electric-colon-1):
4 New test. (Bug#18228)
5
12014-08-29 Dmitry Antipov <dmantipov@yandex.ru> 62014-08-29 Dmitry Antipov <dmantipov@yandex.ru>
2 7
3 * automated/fns-tests.el (fns-tests-sort): New test. 8 * automated/fns-tests.el (fns-tests-sort): New test.
diff --git a/test/automated/python-tests.el b/test/automated/python-tests.el
index 47dfa4b64ed..39195fd7086 100644
--- a/test/automated/python-tests.el
+++ b/test/automated/python-tests.el
@@ -711,6 +711,20 @@ if a:
711 (should (= (python-indent-calculate-indentation) 0)) 711 (should (= (python-indent-calculate-indentation) 0))
712 (should (equal (python-indent-calculate-levels) '(0))))) 712 (should (equal (python-indent-calculate-levels) '(0)))))
713 713
714(ert-deftest python-indent-electric-colon-1 ()
715 "Test indentation case from Bug#18228."
716 (python-tests-with-temp-buffer
717 "
718def a():
719 pass
720
721def b()
722"
723 (python-tests-look-at "def b()")
724 (goto-char (line-end-position))
725 (python-tests-self-insert ":")
726 (should (= (current-indentation) 0))))
727
714 728
715;;; Navigation 729;;; Navigation
716 730
diff --git a/test/indent/scheme.scm b/test/indent/scheme.scm
new file mode 100644
index 00000000000..84d0f6d8786
--- /dev/null
+++ b/test/indent/scheme.scm
@@ -0,0 +1,9 @@
1#!/usr/bin/scheme is this a comment?
2
3;; This one is a comment
4(a)
5#| and this one as #|well|# as this! |#
6(b)
7(cons #;(this is a
8 comment)
9 head tail)