Skip to content

Commit b62eb57

Browse files
committed
Update README.md with 'test' command.
Signed-off-by: Eric Wang <[email protected]>
1 parent 958a423 commit b62eb57

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

README.md

+20-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,26 @@ No trick, it's all your showtime!
103103

104104
### 5. Test
105105

106-
TBD
106+
Customize your testcase and run it against leetcode.
107+
108+
$ lc test ./two-sum.cpp -t '[3,2,4]\n7'
109+
110+
Input data:
111+
[3,2,4]
112+
7
113+
114+
Your
115+
✔ runtime: 0 ms
116+
✘ answer: [1,2]
117+
✔ output:
118+
119+
Expected
120+
✔ runtime: 0 ms
121+
✔ answer: [0,2]
122+
✔ output:
123+
124+
* `-t` to provide test case in command line.
125+
* `-i` to provide test case in interactive mode.
107126

108127
### 6. Submit
109128

0 commit comments

Comments
 (0)