* test/lisp/progmodes/cperl-mode-tests.el
(cperl-mode-test-indent-exp): Make sure that cperl-mode is active
for testing 'cperl-indent-exp', also skip this test under
perl-mode.
* test/lisp/progmodes/cperl-mode-resources/cperl-indent-exp.pl:
Eliminate dependency on unrelated customizable variables (bug#10483).
}
continue
{
-last; # no endless loop, though
+last;
}
}
# -------- while loop: expected output --------
while (1) {
say "boring loop";
} continue {
- last; # no endless loop, though
+ last;
}
}
# -------- while loop: end --------
These exercise some standard blocks and also the special
treatment for Perl expressions where a closing paren isn't the
end of the statement."
+ (skip-unless (eq cperl-test-mode #'cperl-mode))
(let ((file (expand-file-name "cperl-indent-exp.pl"
cperl-mode-tests-data-directory)))
(with-temp-buffer
got)
(with-temp-buffer
(insert code)
+ (cperl-mode)
(goto-char (point-min))
(cperl-indent-exp) ; here we go!
(setq expected (concat "test case " name ":\n" expected))