diff options
| author | Stefan Monnier | 2014-05-27 10:28:07 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2014-05-27 10:28:07 -0400 |
| commit | c435f506a1fd8fbf2bd22f59226ef296a3eb6ab3 (patch) | |
| tree | 4394a9e9a5c5699206ad5828eb154feac19f71eb | |
| parent | c24163d444ba9256b9efee8e7d8f1c65386b1e2a (diff) | |
| download | emacs-c435f506a1fd8fbf2bd22f59226ef296a3eb6ab3.tar.gz emacs-c435f506a1fd8fbf2bd22f59226ef296a3eb6ab3.zip | |
* test/indent/ps-mode.ps: New file.
* test/automated/core-elisp-tests.el
(core-elisp-test-window-configurations): New test.
* test/indent/octave.m: Add a few more tests.
* test/indent/ruby.rb: Add one more test.
| -rw-r--r-- | test/ChangeLog | 11 | ||||
| -rw-r--r-- | test/automated/core-elisp-tests.el | 9 | ||||
| -rw-r--r-- | test/indent/octave.m | 8 | ||||
| -rw-r--r-- | test/indent/ps-mode.ps | 14 | ||||
| -rw-r--r-- | test/indent/ruby.rb | 4 |
5 files changed, 46 insertions, 0 deletions
diff --git a/test/ChangeLog b/test/ChangeLog index 4382fb905e3..5c037eb2b79 100644 --- a/test/ChangeLog +++ b/test/ChangeLog | |||
| @@ -1,3 +1,14 @@ | |||
| 1 | 2014-05-27 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * indent/ruby.rb: Add one more test. | ||
| 4 | |||
| 5 | * indent/ps-mode.ps: New file. | ||
| 6 | |||
| 7 | * indent/octave.m: Add a few more tests. | ||
| 8 | |||
| 9 | * automated/core-elisp-tests.el | ||
| 10 | (core-elisp-test-window-configurations): New test. | ||
| 11 | |||
| 1 | 2014-05-26 Glenn Morris <rgm@gnu.org> | 12 | 2014-05-26 Glenn Morris <rgm@gnu.org> |
| 2 | 13 | ||
| 3 | * automated/package-test.el (package-test-install-single): | 14 | * automated/package-test.el (package-test-install-single): |
diff --git a/test/automated/core-elisp-tests.el b/test/automated/core-elisp-tests.el index 1abaa4d7dec..67ed6b65962 100644 --- a/test/automated/core-elisp-tests.el +++ b/test/automated/core-elisp-tests.el | |||
| @@ -36,5 +36,14 @@ | |||
| 36 | c-e-x) | 36 | c-e-x) |
| 37 | '(1 2))))) | 37 | '(1 2))))) |
| 38 | 38 | ||
| 39 | (ert-deftest core-elisp-test-window-configurations () | ||
| 40 | "Test properties of window-configurations." | ||
| 41 | (let ((wc (current-window-configuration))) | ||
| 42 | (with-current-buffer (window-buffer (frame-selected-window)) | ||
| 43 | (push-mark) | ||
| 44 | (activate-mark)) | ||
| 45 | (set-window-configuration wc) | ||
| 46 | (should (or (not mark-active) (mark))))) | ||
| 47 | |||
| 39 | (provide 'core-elisp-tests) | 48 | (provide 'core-elisp-tests) |
| 40 | ;;; core-elisp-tests.el ends here | 49 | ;;; core-elisp-tests.el ends here |
diff --git a/test/indent/octave.m b/test/indent/octave.m index e5bae850589..8aab5ec03ed 100644 --- a/test/indent/octave.m +++ b/test/indent/octave.m | |||
| @@ -14,7 +14,15 @@ function res = tcomp (fn) | |||
| 14 | y = 'hello'; | 14 | y = 'hello'; |
| 15 | z = y'; | 15 | z = y'; |
| 16 | 16 | ||
| 17 | ## Bug#14399. | ||
| 18 | vec = [... | ||
| 19 | one;... | ||
| 20 | two;... | ||
| 21 | three]; | ||
| 22 | |||
| 17 | cnty = repmat(x(:,1)(:), 10, 1); | 23 | cnty = repmat(x(:,1)(:), 10, 1); |
| 24 | x = ... | ||
| 25 | 12 | ||
| 18 | 26 | ||
| 19 | pop = x(:,1:10)(:); | 27 | pop = x(:,1:10)(:); |
| 20 | ## Here and below, we test if the indentation aligns with a previous | 28 | ## Here and below, we test if the indentation aligns with a previous |
diff --git a/test/indent/ps-mode.ps b/test/indent/ps-mode.ps new file mode 100644 index 00000000000..4b4ee0f10cb --- /dev/null +++ b/test/indent/ps-mode.ps | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | %!PS-2.0 | ||
| 2 | |||
| 3 | << 23 45 >> %dictionary | ||
| 4 | < 23 > %hex string | ||
| 5 | <~a>a%a~> %base85 string | ||
| 6 | (%)s | ||
| 7 | (sf\(g>a)sdg) | ||
| 8 | |||
| 9 | /foo { | ||
| 10 | << | ||
| 11 | hello 2 | ||
| 12 | 3 | ||
| 13 | >> | ||
| 14 | } def | ||
diff --git a/test/indent/ruby.rb b/test/indent/ruby.rb index 7e778798996..82cc63f9168 100644 --- a/test/indent/ruby.rb +++ b/test/indent/ruby.rb | |||
| @@ -6,6 +6,10 @@ if something_wrong? # ruby-move-to-block-skips-heredoc | |||
| 6 | foo | 6 | foo |
| 7 | end | 7 | end |
| 8 | 8 | ||
| 9 | def foo | ||
| 10 | %^bar^ | ||
| 11 | end | ||
| 12 | |||
| 9 | # Percent literals. | 13 | # Percent literals. |
| 10 | b = %Q{This is a "string"} | 14 | b = %Q{This is a "string"} |
| 11 | c = %w!foo | 15 | c = %w!foo |