Skip to content

Commit 20b44fc

Browse files
authored
Merge pull request #7 from code-check/takayukioda-patch-1-1
fix: update template text
2 parents e4d8482 + eafcd9f commit 20b44fc

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

app/main.js

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
"use strict";
22

33
function main(argv) {
4-
argv.forEach(v => console.log(v));
4+
/**
5+
* このコードは引数と標準出力を用いたサンプルコードです。
6+
* このコードは好きなように編集・削除してもらって構いません。
7+
*
8+
* This is a sample code to use arguments and outputs.
9+
* You can edit and even remove this code as you like.
10+
*/
11+
argv.forEach((v, i) => console.log(`argv[${i}]: ${v}`));
512
}
613

714
module.exports = main;

test/cases.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[
22
{ "it": "hoge ->-> hoge",
3-
"input": ["hoge"], "output": ["hoge"]},
3+
"input": ["hoge"], "output": ["argv[0]: hoge"]},
44
{ "it": "hoge, fuga ->-> hoge, fuga",
5-
"input": ["hoge", "fuga"], "output": ["hoge", "fuga"]},
5+
"input": ["hoge", "fuga"], "output": ["argv[0]: hoge", "argv[1]: fuga"]},
66
{ "it": "hoge fuga ->-> hoge fuga",
7-
"input": ["hoge fuga"], "output": ["hoge fuga"]}
7+
"input": ["hoge fuga"], "output": ["argv[0]: hoge fuga"]}
88
]

0 commit comments

Comments
 (0)