Skip to content

Commit

Permalink
Merge pull request emacs-ess#522 from jabranham/fix-tests
Browse files Browse the repository at this point in the history
tests: use cl-lib functions rather than cl functions
  • Loading branch information
vspinu authored Apr 16, 2018
2 parents eb20f7c + 14e5d07 commit b53f7c4
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions test/ess-literate-tests.el
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
(eval-when-compile
(require 'cl-lib))

(defun ess-ltest-check (file)
(let ((path (expand-file-name file "literate")))
Expand Down Expand Up @@ -241,13 +243,13 @@

(defun ess-ltest-decode-keysequence (str)
"Decode STR from e.g. \"23ab5c\" to '(23 \"a\" \"b\" 5 \"c\")"
(let ((table (copy-seq (syntax-table))))
(loop for i from ?0 to ?9 do
(modify-syntax-entry i "." table))
(loop for i from ? to ? do
(modify-syntax-entry i "w" table))
(loop for i in '(? ?\( ?\) ?\[ ?\] ?{ ?} ?\" ?\' ?\ )
do (modify-syntax-entry i "w" table))
(let ((table (copy-sequence (syntax-table))))
(cl-loop for i from ?0 to ?9 do
(modify-syntax-entry i "." table))
(cl-loop for i from ? to ? do
(modify-syntax-entry i "w" table))
(cl-loop for i in '(? ?\( ?\) ?\[ ?\] ?{ ?} ?\" ?\' ?\ )
do (modify-syntax-entry i "w" table))
(cl-mapcan (lambda (x)
(let ((y (ignore-errors (read x))))
(if (numberp y)
Expand Down

0 comments on commit b53f7c4

Please sign in to comment.