shithub: mc

ref: c42fbb600b463eb1c8471bfd34ad829aad5499c3
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: {}\n", msg)
	;;
}