Skip to content
Snippets Groups Projects
Commit abaa7cf6 authored by Florin Postolache's avatar Florin Postolache
Browse files

Change points for bonus


Signed-off-by: default avatarFlorin Postolache <florin.postolache.of@gmail.com>
parent 29731c1a
No related branches found
No related tags found
No related merge requests found
Checking pipeline status
TOTAL_POINTS=0
TASKS=0
mkdir -p out
check_one() {
./functional < in/$1.in > out/$1.out
if cmp --silent -- out/$1.out ref/$1.ref; then
printf "Test %02d ................. PASSED: 1.0p\n" $1
TOTAL_POINTS=$(($TOTAL_POINTS + 1))
printf "Test %02d ................. PASSED: 1.5p\n" $1
TASK=$(($TASK + 1))
else
printf "Test %02d ................. FAILED: 0.0p\n" $1
fi
......@@ -13,10 +13,10 @@ check_one() {
#if [[ -z "$1" ]]; then
echo "---------------TASK BONUS---------------"
for i in $(seq 1 20); do
for i in $(seq 1 19); do
check_one $i
done
printf "\nTASK BONUS SCORE: %.2f / 20.00\n\n" $TOTAL_POINTS
printf "\nTASK BONUS SCORE: %.2f / 30.00\n\n" $(echo "scale=2; $TASK*1.5" | bc)
#else
# check_one $1
#fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment