summaryrefslogtreecommitdiff
path: root/test/catfile.myr
blob: e93349b9be5de3acc6f080943bc0eae1f55aa9b1 (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.Fail msg:	std.put("Failed to read file: {}\n", msg)
	;;
}