diff options
Diffstat (limited to 'tests/specs/run/_028_args')
-rw-r--r-- | tests/specs/run/_028_args/028_args.ts | 3 | ||||
-rw-r--r-- | tests/specs/run/_028_args/028_args.ts.out | 6 | ||||
-rw-r--r-- | tests/specs/run/_028_args/__test__.jsonc | 4 |
3 files changed, 13 insertions, 0 deletions
diff --git a/tests/specs/run/_028_args/028_args.ts b/tests/specs/run/_028_args/028_args.ts new file mode 100644 index 000000000..ec41d52f9 --- /dev/null +++ b/tests/specs/run/_028_args/028_args.ts @@ -0,0 +1,3 @@ +Deno.args.forEach((arg) => { + console.log(arg); +}); diff --git a/tests/specs/run/_028_args/028_args.ts.out b/tests/specs/run/_028_args/028_args.ts.out new file mode 100644 index 000000000..0f1b5c59e --- /dev/null +++ b/tests/specs/run/_028_args/028_args.ts.out @@ -0,0 +1,6 @@ +--arg1 +val1 +--arg2=val2 +-- +arg3 +arg4 diff --git a/tests/specs/run/_028_args/__test__.jsonc b/tests/specs/run/_028_args/__test__.jsonc new file mode 100644 index 000000000..6ab81bf21 --- /dev/null +++ b/tests/specs/run/_028_args/__test__.jsonc @@ -0,0 +1,4 @@ +{ + "args": "run --quiet --reload 028_args.ts --arg1 val1 --arg2=val2 -- arg3 arg4", + "output": "028_args.ts.out" +} |