aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)