]> gitweb.hhaalo.de Git - albentohandy.git/commitdiff
change test custom extension two
authorBastian Dehn <hhaalo@arcor.de>
Wed, 30 Sep 2026 07:35:14 +0000 (09:35 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Wed, 30 Sep 2026 07:35:14 +0000 (09:35 +0200)
tests/albentohandy.bats

index f81d78ac3a4ec88aea65bd034d20484f28b30351..bd4b674c32445fc3c493e4afdc29ef475b8e6830 100755 (executable)
@@ -596,7 +596,7 @@ teardown() {
 
 # bats test_tags=albentohandy:checksum
 @test "success: create checksum for only custom extension" {
-       EXTENSIONS=("txt")
+       EXTENSIONS=("txt" "jpg")
        load_config() {
                :
        }
@@ -633,8 +633,9 @@ teardown() {
 
        assert_success
        [ -f "build/tests/output/checksum.sha256" ]
-       assert_equal "$(wc --lines "build/tests/output/checksum.sha256" | sed 's/ .*//')" "1"
-       assert_equal "$(awk 'NR==1 {print; exit}' "build/tests/output/checksum.sha256")" "2da346a5b02c5f5b0966a6a4b55eca146a698ae4d5b3f804b06990caa6d17fed  ./Artist1/Album1/other.txt"
+       assert_equal "$(wc --lines "build/tests/output/checksum.sha256" | sed 's/ .*//')" "2"
+       assert_equal "$(awk 'NR==1 {print; exit}' "build/tests/output/checksum.sha256")" "b31a485a021b49375a5b61eca2467b04b8137024ecda9cd95c687e954dc7c247  ./Artist1/Album1/cover.jpg"
+       assert_equal "$(awk 'NR==2 {print; exit}' "build/tests/output/checksum.sha256")" "2da346a5b02c5f5b0966a6a4b55eca146a698ae4d5b3f804b06990caa6d17fed  ./Artist1/Album1/other.txt"
 }
 
 # bats test_tags=albentohandy:usage