Skip to content

Commit b3a0445

Browse files
committed
Revert "Fix syntax testing method"
This reverts commit bd3bd23.
1 parent bd3bd23 commit b3a0445

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: tests/php-mode-test.el

+4-4
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-
(should (equal (mapcar #'car (c-guess-basic-syntax))
352-
'(statement-cont)))
351+
(dolist (syntax (c-guess-basic-syntax))
352+
(should (eq (car syntax) 'string)))
353353
(search-forward "function bar")
354354
;; After the heredoc should *not* be recognized as a string.
355-
(should (equal (mapcar #'car (c-guess-basic-syntax))
356-
'(topmost-intro-cont)))))
355+
(dolist (syntax (c-guess-basic-syntax))
356+
(should (not (eq (car syntax) 'string))))))
357357

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

0 commit comments

Comments
 (0)