aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDmitry Gutov2016-03-16 01:48:10 +0200
committerDmitry Gutov2016-03-16 01:48:33 +0200
commit1d686c2afb7c6c869c339f7c70daae969b429429 (patch)
treec9a92ce17ca9484c7676dc807c361b561814d79b /test
parent7950e1dd3fc1ce07cc4d6001de6c11a249b80de8 (diff)
downloademacs-1d686c2afb7c6c869c339f7c70daae969b429429.tar.gz
emacs-1d686c2afb7c6c869c339f7c70daae969b429429.zip
(ruby-interpolation-inside-another-interpolation): New failing test
* test/automated/ruby-mode-tests.el (ruby-interpolation-inside-another-interpolation): New failing test.
Diffstat (limited to 'test')
-rw-r--r--test/automated/ruby-mode-tests.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/automated/ruby-mode-tests.el b/test/automated/ruby-mode-tests.el
index 4fa7470218a..7e85fb83edd 100644
--- a/test/automated/ruby-mode-tests.el
+++ b/test/automated/ruby-mode-tests.el
@@ -449,6 +449,14 @@ VALUES-PLIST is a list with alternating index and value elements."
449 ;; It's confused by the closing paren in the middle. 449 ;; It's confused by the closing paren in the middle.
450 (ruby-assert-state s 8 nil))) 450 (ruby-assert-state s 8 nil)))
451 451
452(ert-deftest ruby-interpolation-inside-another-interpolation ()
453 :expected-result :failed
454 (let ((s "\"#{[a, b, c].map { |v| \"#{v}\" }.join}\""))
455 (ruby-assert-face s 1 font-lock-string-face)
456 (ruby-assert-face s 2 font-lock-variable-name-face)
457 (ruby-assert-face s 38 font-lock-string-face)
458 (ruby-assert-state s 8 nil)))
459
452(ert-deftest ruby-interpolation-inside-double-quoted-percent-literals () 460(ert-deftest ruby-interpolation-inside-double-quoted-percent-literals ()
453 (ruby-assert-face "%Q{foo #@bar}" 8 font-lock-variable-name-face) 461 (ruby-assert-face "%Q{foo #@bar}" 8 font-lock-variable-name-face)
454 (ruby-assert-face "%W{foo #@bar}" 8 font-lock-variable-name-face) 462 (ruby-assert-face "%W{foo #@bar}" 8 font-lock-variable-name-face)