]> gitweb.hhaalo.de Git - scantopdf.git/commitdiff
change tests for pdfgrep
authorBastian Dehn <hhaalo@arcor.de>
Sat, 18 Oct 2025 17:11:22 +0000 (19:11 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Sat, 18 Oct 2025 17:11:22 +0000 (19:11 +0200)
tests/scanbasic.bats

index d3bc804a39b00cc9a960f0885fd8839e80dc9cbc..322b552bfdce2bdf7cd5e78a5f8f0e276bf4ce8f 100755 (executable)
@@ -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"