Skip to content

Commit

Permalink
Add message to assertion to debug failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jansorg committed Feb 13, 2024
1 parent 4fb3c0c commit 78cd4c5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/unit/test-cmd-info-variables.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ test_cmd_info_variables()
fi
done

assertEquals "1" "$found"
assertEquals "0" "$too_permissive"
assertEquals "Filtering with -i must show integer variables" "1" "$found"
assertEquals "Filtering with -i must not show non-integer variables" "0" "$too_permissive"

found=0
too_permissive=0
Expand All @@ -27,8 +27,8 @@ test_cmd_info_variables()
fi
done

assertEquals "1" "$found"
assertEquals "0" "$too_permissive"
assertEquals "Filtering with -x must show exported variables" "1" "$found"
assertEquals "Filtering with -x must not show unexported variables" "0" "$too_permissive"
# FIXME try -x -i, and no options. try invalid opts
}

Expand Down

0 comments on commit 78cd4c5

Please sign in to comment.