Skip to content

Commit bd3bd23

Browse files
committed
Fix syntax testing method
1 parent 03e9985 commit bd3bd23

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/php-mode-test.el

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -348,12 +348,12 @@ style from Drupal."
348348
(with-php-mode-test ("issue-124.php" :indent t)
349349
(search-forward "Start of heredoc")
350350
;; The heredoc should be recognized as a string.
351-
(dolist (syntax (c-guess-basic-syntax))
352-
(should (eq (car syntax) 'string)))
351+
(should (equal (mapcar #'car (c-guess-basic-syntax))
352+
'(statement-cont)))
353353
(search-forward "function bar")
354354
;; After the heredoc should *not* be recognized as a string.
355-
(dolist (syntax (c-guess-basic-syntax))
356-
(should (not (eq (car syntax) 'string))))))
355+
(should (equal (mapcar #'car (c-guess-basic-syntax))
356+
'(topmost-intro-cont)))))
357357

358358
(ert-deftest php-mode-test-issue-136 ()
359359
"Proper highlighting for variable interpolation."

0 commit comments

Comments
 (0)