Add new tests for batman

This commit is contained in:
Ethan P 2019-10-22 15:42:34 -07:00
parent df14cfc8b1
commit 14b69a893d
No known key found for this signature in database
GPG Key ID: 6963FD04F6CF35EA
5 changed files with 56 additions and 0 deletions

10
test/data/batman.1 Normal file
View File

@ -0,0 +1,10 @@
.TH batman 1 "22 October 2019"
.SH NAME
batman \- Display manpages using \fBbat\fP
.SH SYNOPSIS
\fBbatman\fP \fIpage\fP [\fIsection\fP]
.SH DESCRIPTION
A wrapper script that uses \fBbat\fP to highlight the output of a manpage.

View File

@ -0,0 +1,3 @@
set -e
"$TEST_RUNNER" batman ./batman.1 --color=always

View File

@ -0,0 +1,21 @@
────────────────────────────────────────────────────────────────────────────────
batman(1) batman(1)



NAME
 batman - Display manpages using bat


SYNOPSIS
 batman page [section]


DESCRIPTION
 A wrapper script that uses bat to highlight the output of a manpage.




 22 October 2019 batman(1)
────────────────────────────────────────────────────────────────────────────────

View File

@ -0,0 +1,3 @@
set -e
"$TEST_RUNNER" batman ./batman.1 --color=never

View File

@ -0,0 +1,19 @@
batman(1) batman(1)
NAME
batman - Display manpages using bat
SYNOPSIS
batman page [section]
DESCRIPTION
A wrapper script that uses bat to highlight the output of a manpage.
22 October 2019 batman(1)