Skip to content

Commit

Permalink
Add test to check gensym reading.
Browse files Browse the repository at this point in the history
  • Loading branch information
Affonso-Gui committed Apr 10, 2018
1 parent f40fc73 commit 65a8144
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions irteus/test/read-line.l
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,12 @@
;; (assert (= (test-read-line 8192) 8192) "read-line with ~A char" 8192) ;; tempolarily comment out
)

(deftest test-read-gensym
(let ((g (gensym))
(*print-circle* t))
(assert
(apply #'eq (read-from-string (format nil "~S" (list g g))))
"Unable to read uninterned symbol")))

(run-all-tests)
(exit)

0 comments on commit 65a8144

Please sign in to comment.