Commit 7785fc6817bccea6d7a70b29c842e74050d912c0

Thomas de Grivel 2018-06-18T10:28:31

test

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/test.lisp b/test.lisp
index e9aa276..754bbd3 100644
--- a/test.lisp
+++ b/test.lisp
@@ -24,11 +24,11 @@
     (stream-read css)))
 
 (defun test-file (path)
-  (with-stream (in (css-lexer
-                    (babel-input-stream
-                     (unistd-stream-open path :read t))))
-    (let ((parser (make-instance 'parser :stream in)))
-      (stream-read parser))))
+  (with-stream (css (css-parser
+                     (css-lexer
+                      (babel-input-stream
+                       (unistd-stream-open path :read t)))))
+    (stream-read css)))
 
 (defun run ()
   (simple-test))