mirror of
https://github.com/eth-p/bat-extras.git
synced 2024-12-13 17:50:56 +01:00
13 lines
225 B
Bash
13 lines
225 B
Bash
|
setup() {
|
||
|
use_shim 'batdiff'
|
||
|
}
|
||
|
|
||
|
test:version() {
|
||
|
description "Test 'batdiff --version'"
|
||
|
snapshot stdout
|
||
|
snapshot stderr
|
||
|
|
||
|
batdiff --version | awk 'FNR <= 1 { print $1 }'
|
||
|
batdiff --version | awk 'p{print} /^$/ { p=1 }'
|
||
|
}
|