summaryrefslogtreecommitdiff
path: root/lib/bio/test/bio-unitwr.myr
blob: 8a1774c32308ed409191b3e869758b89ff5901d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std
use bio

const main = {
	var f
	match bio.create("tmpout/test-unitwr", bio.Wr, 0o644)
	| `std.Some bio:	f = bio
	| `std.None:	std.fatal(1, "Unable to open data file")
	;;
	bio.putb(f, 42)
	bio.putc(f, 'ה')
	bio.putb(f, 0xa)
	bio.close(f);
}