shithub: mc

ref: 493a0c8839f5f8b25c60146a8e326653bef190c6
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")
	match r
	`std.Success dat: 	std.write(1, dat);;
	`std.Failure msg:	std.put("Failed to read file: %s\n", msg);;
	;;
	-> 0
}