Skip to content

Commit 16d0feb

Browse files
committed
Add more tests for help page and error handling
1 parent e5fa276 commit 16d0feb

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/main.t

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,25 @@ Go Replace tests:
66

77
Usage:
88

9+
$ goreplace -h > /dev/null
10+
[1]
911
$ goreplace -V
1012
goreplace version [0-9]+.[0-9]+.[0-9]+ (re)
1113

1214

1315
Testing ignoring missing arguments:
16+
1417
$ goreplace -s foobar -r ___xxx --ignore-empty
1518

19+
Testing missing search and replace argument:
20+
21+
$ goreplace --mode=replace /dev/null &> /dev/null
22+
[1]
23+
24+
Testing ignoring missing arguments in template mode:
25+
26+
$ goreplace --mode=template --ignore-empty
27+
1628

1729

1830
Testing replace mode:

0 commit comments

Comments
 (0)