]> git.eshelyaron.com Git - emacs.git/commitdiff
(ruby-interpolation-inside-another-interpolation): New failing test
authorDmitry Gutov <dgutov@yandex.ru>
Tue, 15 Mar 2016 23:48:10 +0000 (01:48 +0200)
committerDmitry Gutov <dgutov@yandex.ru>
Tue, 15 Mar 2016 23:48:33 +0000 (01:48 +0200)
* test/automated/ruby-mode-tests.el
(ruby-interpolation-inside-another-interpolation):
New failing test.

test/automated/ruby-mode-tests.el

index 4fa7470218afad8c0115c2be3110d34e83e11bce..7e85fb83eddf25ada143a09665753a4e8a5a38c4 100644 (file)
@@ -449,6 +449,14 @@ VALUES-PLIST is a list with alternating index and value elements."
     ;; It's confused by the closing paren in the middle.
     (ruby-assert-state s 8 nil)))
 
+(ert-deftest ruby-interpolation-inside-another-interpolation ()
+  :expected-result :failed
+  (let ((s "\"#{[a, b, c].map { |v| \"#{v}\" }.join}\""))
+    (ruby-assert-face s 1 font-lock-string-face)
+    (ruby-assert-face s 2 font-lock-variable-name-face)
+    (ruby-assert-face s 38 font-lock-string-face)
+    (ruby-assert-state s 8 nil)))
+
 (ert-deftest ruby-interpolation-inside-double-quoted-percent-literals ()
   (ruby-assert-face "%Q{foo #@bar}" 8 font-lock-variable-name-face)
   (ruby-assert-face "%W{foo #@bar}" 8 font-lock-variable-name-face)