Hash :
7785fc68
Author :
Thomas de Grivel
Date :
2018-06-18T10:28:31
(in-package :common-lisp-user)
(defpackage :parse-css/test
(:use :babel-stream
:cl-stream
:common-lisp
:css-lexer
:parse-css
:unistd-stream)
#.(cl-stream:shadowing-import-from)
(:export
#:run
#:simple-test
#:test-file))
(in-package :parse-css/test)
(defun simple-test ()
(with-stream (css (css-parser
(css-lexer
(string-input-stream
"body { color: #f00; }"))))
(stream-read css)))
(defun test-file (path)
(with-stream (css (css-parser
(css-lexer
(babel-input-stream
(unistd-stream-open path :read t)))))
(stream-read css)))
(defun run ()
(simple-test))