mirror of
https://github.com/eth-p/bat-extras.git
synced 2025-01-05 20:58:51 +01:00
Add new tests for batman
This commit is contained in:
parent
df14cfc8b1
commit
14b69a893d
10
test/data/batman.1
Normal file
10
test/data/batman.1
Normal 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.
|
||||
|
3
test/tests/batman.color.sh
Normal file
3
test/tests/batman.color.sh
Normal file
@ -0,0 +1,3 @@
|
||||
set -e
|
||||
"$TEST_RUNNER" batman ./batman.1 --color=always
|
||||
|
21
test/tests/batman.color.snapshot
Normal file
21
test/tests/batman.color.snapshot
Normal file
@ -0,0 +1,21 @@
|
||||
[38;5;238m────────────────────────────────────────────────────────────────────────────────[0m
|
||||
[38;2;248;248;242mbatman(1) batman(1)[0m
|
||||
[38;2;248;248;242m[0m
|
||||
[38;2;248;248;242m[0m
|
||||
[38;2;248;248;242m[0m
|
||||
[38;2;253;151;31mNAME[0m[38;2;248;248;242m[0m
|
||||
[38;2;248;248;242m batman - Display manpages using bat[0m
|
||||
[38;2;248;248;242m[0m
|
||||
[38;2;248;248;242m[0m
|
||||
[38;2;253;151;31mSYNOPSIS[0m[38;2;248;248;242m[0m
|
||||
[38;2;248;248;242m batman page [0m[38;2;248;248;242m[[0m[38;2;248;248;242msection[0m[38;2;248;248;242m][0m[38;2;248;248;242m[0m
|
||||
[38;2;248;248;242m[0m
|
||||
[38;2;248;248;242m[0m
|
||||
[38;2;253;151;31mDESCRIPTION[0m[38;2;248;248;242m[0m
|
||||
[38;2;248;248;242m A wrapper script that uses bat to highlight the output of a manpage.[0m
|
||||
[38;2;248;248;242m[0m
|
||||
[38;2;248;248;242m[0m
|
||||
[38;2;248;248;242m[0m
|
||||
[38;2;248;248;242m[0m
|
||||
[38;2;248;248;242m 22 October 2019 [0m[38;2;166;226;46mbatman[0m[38;2;249;38;114m([0m[38;2;190;132;255m1[0m[38;2;249;38;114m)[0m[38;2;248;248;242m[0m
|
||||
[38;5;238m────────────────────────────────────────────────────────────────────────────────[0m
|
3
test/tests/batman.plain.sh
Normal file
3
test/tests/batman.plain.sh
Normal file
@ -0,0 +1,3 @@
|
||||
set -e
|
||||
"$TEST_RUNNER" batman ./batman.1 --color=never
|
||||
|
19
test/tests/batman.plain.snapshot
Normal file
19
test/tests/batman.plain.snapshot
Normal 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)
|
Loading…
Reference in New Issue
Block a user