Skip to content
Snippets Groups Projects
Commit ab819251 authored by Lazar Cristian-Stefan's avatar Lazar Cristian-Stefan
Browse files

Merge branch 'master' of gitlab.cs.pub.ro:iocla/tema3-2024-private

parents e1407fcd cb96d266
No related branches found
No related tags found
No related merge requests found
Pipeline #68230 passed
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
TASKS=$(($TASKS + 1))
else
printf "Test %02d ................. FAILED: 0.0p\n" $1
fi
......@@ -16,7 +16,7 @@ check_one() {
for i in $(seq 1 20); 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; $TASKS*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