summaryrefslogtreecommitdiff
path: root/test/catfile.myr
blob: 3dde925cd8dcbd91afd92c060e6765e00b57d02c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* checks that we can read a data file. */
use std

const main = {args : byte[:][:]
	var r

	r = std.slurp("data/catfile-in")
	match r
	| `std.Ok dat: 	std.write(1, dat)
	| `std.Err msg:	std.put("Failed to read file: {}\n", msg)
	;;
}