ref: f1558a33e06a7b344cac9a351f2879c2f881b28e
parent: 8f6bfd8f7bf8c5ca162bdf49a94570e21e03ba3a
author: Ori Bernstein <[email protected]>
date: Wed Dec 18 13:14:34 EST 2013
unit -> unitwr test name
--- a/test/bio-unitwr.myr
+++ b/test/bio-unitwr.myr
@@ -3,23 +3,12 @@
const main = {
var f
- /* Must be bigger than a bio buffer (ie, > 64k) */
- var buf : byte[64*1024]
-
match bio.create("tmpout/test-unitwr", bio.Wr, 0o644)
| `std.Some bio: f = bio
| `std.None: std.fatal(1, "Unable to open data file")
;;
-
- /* write a byte */
bio.putb(f, 42)
-
- /* and a char */
bio.putc(f, 'ה')
-
- /* write a byte */
bio.putb(f, 0xa)
-
- /* and test for flush on close */
bio.close(f);
}
--- a/test/data/bio-unit-expected
+++ /dev/null
@@ -1,1 +1,0 @@
-*ה
--- /dev/null
+++ b/test/data/bio-unitwr-expected
@@ -1,0 +1,1 @@
+*ה