shithub: mc

ref: e810bb4e2b87089f4910f7e489a429cc5e62e47d
dir: /test/catfile.myr/

View raw version
/* 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: %s\n", msg)
	;;
	-> 0
}