summaryrefslogtreecommitdiff
path: root/tests/cat.ts
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cat.ts')
-rw-r--r--tests/cat.ts11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/cat.ts b/tests/cat.ts
new file mode 100644
index 000000000..bede0d432
--- /dev/null
+++ b/tests/cat.ts
@@ -0,0 +1,11 @@
+import { stdout, open, copy, args } from "deno";
+
+async function main() {
+ for (let i = 1; i < args.length; i++) {
+ let filename = args[i];
+ let file = await open(filename);
+ await copy(stdout, file);
+ }
+}
+
+main();