-- tests/std.cat -- exercises the std/ tree (use/import + modules). use "std/math/math.cat" use "std/io/io.cat" use "std/fs/fs.cat" print("math double:", double(21)) print("math square:", square(9)) print("math abs:", abs(-7)) print("io join:", join({ "a", "b", "c" }, "-")) local path = "/tmp/catscript_std_test.txt" fs_write(path, "one") fs_append(path, "two") print("fs read:", fs_read(path)) print("fs copy:", fs_copy(path, "/tmp/catscript_std_copy.txt")) print("fs read2:", fs_read("/tmp/catscript_std_copy.txt"))