assert_line --index 0 "❌ ERROR: missing pdf"
}
-@test "should failure detectsplit zbarimg fails" {
- zbarimg() {
+@test "should failure detectsplit pdfgrep fails" {
+ pdfgrep() {
return 1
}
assert_line --index 0 "false"
}
-@test "should success and false detectsplit zbarimg nothing find" {
- zbarimg() {
+@test "should success and false detectsplit pdfgrep nothing find" {
+ pdfgrep() {
:
}
assert_line --index 0 "false"
}
-@test "should success and true detectsplit zbarimg find trennblatt" {
- zbarimg() {
- echo "Trennblatt"
+@test "should success and true detectsplit pdfgrep find 47CUTPAGE11" {
+ pdfgrep() {
+ echo "47CUTPAGE11"
}
run detectsplit "testfile.pdf"