From d41c2e91bc3210cb527b0862e157c24812f60b43 Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Sat, 18 Oct 2025 19:11:22 +0200 Subject: [PATCH] change tests for pdfgrep --- tests/scanbasic.bats | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/scanbasic.bats b/tests/scanbasic.bats index d3bc804..322b552 100755 --- a/tests/scanbasic.bats +++ b/tests/scanbasic.bats @@ -185,8 +185,8 @@ setup() { assert_line --index 0 "❌ ERROR: missing pdf" } -@test "should failure detectsplit zbarimg fails" { - zbarimg() { +@test "should failure detectsplit pdfgrep fails" { + pdfgrep() { return 1 } @@ -196,8 +196,8 @@ setup() { 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() { : } @@ -207,9 +207,9 @@ setup() { 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" -- 2.47.3