Commit d91a80c97d7c700baf796745592783531cb2a4e5

Thomas de Grivel 2017-06-17T21:31:49

more tests

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 02c3ef2..a12a923 100644
--- a/test.lisp
+++ b/test.lisp
@@ -9,6 +9,16 @@
 
 (in-package :fd-stream.test)
 
+(let ((s (fd-output-stream 1)))
+  (write s 13)
+  (dotimes (i 10)
+    (write s (+ 48 i)))
+  (write s 13)
+  (flush s))
+
+(let ((s (fd-input-stream 0)))
+  (read s))
+
 (with-stream (s (open-file "/tmp/test"))
   (dotimes (i 100)
     (write s i)))