diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/ChangeLog | 9 | ||||
| -rw-r--r-- | test/automated/ruby-mode-tests.el | 20 | ||||
| -rw-r--r-- | test/indent/octave.m | 2 |
3 files changed, 30 insertions, 1 deletions
diff --git a/test/ChangeLog b/test/ChangeLog index 8ab70c98c82..98fb2e3da1f 100644 --- a/test/ChangeLog +++ b/test/ChangeLog | |||
| @@ -1,3 +1,12 @@ | |||
| 1 | 2013-05-31 Dmitry Gutov <dgutov@yandex.ru> | ||
| 2 | |||
| 3 | * automated/ruby-mode-tests.el: New tests, for percent literals | ||
| 4 | and expression expansion. | ||
| 5 | |||
| 6 | 2013-05-29 Leo Liu <sdl.web@gmail.com> | ||
| 7 | |||
| 8 | * indent/octave.m: Tweak. | ||
| 9 | |||
| 1 | 2013-05-26 Aidan Gauland <aidalgol@amuri.net> | 10 | 2013-05-26 Aidan Gauland <aidalgol@amuri.net> |
| 2 | 11 | ||
| 3 | * tests/eshell.el: Rewrite tests using ERT. | 12 | * tests/eshell.el: Rewrite tests using ERT. |
diff --git a/test/automated/ruby-mode-tests.el b/test/automated/ruby-mode-tests.el index e52927a2968..77dd62821f7 100644 --- a/test/automated/ruby-mode-tests.el +++ b/test/automated/ruby-mode-tests.el | |||
| @@ -112,6 +112,9 @@ VALUES-PLIST is a list with alternating index and value elements." | |||
| 112 | (ert-deftest ruby-regexp-starts-after-string () | 112 | (ert-deftest ruby-regexp-starts-after-string () |
| 113 | (ruby-assert-state "'(/', /\d+/" 3 ?/ 8)) | 113 | (ruby-assert-state "'(/', /\d+/" 3 ?/ 8)) |
| 114 | 114 | ||
| 115 | (ert-deftest ruby-regexp-interpolation-is-highlighted () | ||
| 116 | (ruby-assert-face "/#{foobs}/" 4 font-lock-variable-name-face)) | ||
| 117 | |||
| 115 | (ert-deftest ruby-regexp-skips-over-interpolation () | 118 | (ert-deftest ruby-regexp-skips-over-interpolation () |
| 116 | (ruby-assert-state "/#{foobs.join('/')}/" 3 nil)) | 119 | (ruby-assert-state "/#{foobs.join('/')}/" 3 nil)) |
| 117 | 120 | ||
| @@ -353,6 +356,23 @@ VALUES-PLIST is a list with alternating index and value elements." | |||
| 353 | ;; It's confused by the closing paren in the middle. | 356 | ;; It's confused by the closing paren in the middle. |
| 354 | (ruby-assert-state s 8 nil))) | 357 | (ruby-assert-state s 8 nil))) |
| 355 | 358 | ||
| 359 | (ert-deftest ruby-interpolation-inside-double-quoted-percent-literals () | ||
| 360 | (ruby-assert-face "%Q{foo #@bar}" 8 font-lock-variable-name-face) | ||
| 361 | (ruby-assert-face "%W{foo #@bar}" 8 font-lock-variable-name-face) | ||
| 362 | (ruby-assert-face "%r{foo #@bar}" 8 font-lock-variable-name-face) | ||
| 363 | (ruby-assert-face "%x{foo #@bar}" 8 font-lock-variable-name-face)) | ||
| 364 | |||
| 365 | (ert-deftest ruby-no-interpolation-in-single-quoted-literals () | ||
| 366 | (ruby-assert-face "'foo #@bar'" 7 font-lock-string-face) | ||
| 367 | (ruby-assert-face "%q{foo #@bar}" 8 font-lock-string-face) | ||
| 368 | (ruby-assert-face "%w{foo #@bar}" 8 font-lock-string-face) | ||
| 369 | (ruby-assert-face "%s{foo #@bar}" 8 font-lock-string-face)) | ||
| 370 | |||
| 371 | (ert-deftest ruby-no-unknown-percent-literals () | ||
| 372 | ;; No folding of case. | ||
| 373 | (ruby-assert-face "%S{foo}" 4 nil) | ||
| 374 | (ruby-assert-face "%R{foo}" 4 nil)) | ||
| 375 | |||
| 356 | (ert-deftest ruby-add-log-current-method-examples () | 376 | (ert-deftest ruby-add-log-current-method-examples () |
| 357 | (let ((pairs '(("foo" . "#foo") | 377 | (let ((pairs '(("foo" . "#foo") |
| 358 | ("C.foo" . ".foo") | 378 | ("C.foo" . ".foo") |
diff --git a/test/indent/octave.m b/test/indent/octave.m index 55f8cc045f4..e5bae850589 100644 --- a/test/indent/octave.m +++ b/test/indent/octave.m | |||
| @@ -2311,7 +2311,7 @@ function dep = is_architecture_dependent (nm) | |||
| 2311 | ext(end) = []; | 2311 | ext(end) = []; |
| 2312 | else | 2312 | else |
| 2313 | isglob = false; # I am a test | 2313 | isglob = false; # I am a test |
| 2314 | # me too | 2314 | #%% me too |
| 2315 | ### I shall align to column 0 | 2315 | ### I shall align to column 0 |
| 2316 | endif | 2316 | endif |
| 2317 | pos = findstr (nm, ext); | 2317 | pos = findstr (nm, ext); |