diff --git a/scripts/.check_reviews.sh.swp b/scripts/.check_reviews.sh.swp new file mode 100644 index 0000000..26ef281 Binary files /dev/null and b/scripts/.check_reviews.sh.swp differ diff --git a/scripts/check_reviews.sh b/scripts/check_reviews.sh new file mode 100755 index 0000000..100d707 --- /dev/null +++ b/scripts/check_reviews.sh @@ -0,0 +1,41 @@ +#/bin/bash + +if [ "$#" -ne 2 ]; then + echo "Usage 'scripts/check_reviews.sh '" + exit 1 +fi + +TASK=$1 +STUDENT=$2 + +VALID=1 +SUM=0 +for f in $TASK/reviews/$STUDENT/review-*.md; do + SCORE=`head -n1 $f | cut -d':' -f2 | xargs` + SUM=$((SUM+SCORE)) + + SL=`grep "# Strengths / Mocne strony" $f -A3 | grep "^\\*" | wc -l` + WL=`grep "# Weaknesses / Słabe strony" $f -A3 | grep "^\\*" | wc -l` + + if [ "$SL" != "3" ] || [ "$WL" != "3" ]; then + echo "Wrong number of remarks." + VALID=0 + fi + + WRONG=`grep "^\\*[[:space:]]*$" $f | wc -l` + if [ "$WRONG" != "0" ]; then + echo "Review contain empty remark" + VALID=0 + fi +done +if [ "$SUM" != "10" ]; then + printf "Total number of points for reviews (%d) is greater then 10.\n" $SUM + VALID=0 +fi + + +if [ "$VALID" = "1" ]; then + echo "\nYour reviews are valid !" +else + echo "\nYour reviews are NOT VALID !" +fi diff --git a/z3-use-case/reviews/329575/review-34af7.md b/z3-use-case/reviews/329575/review-34af7.md new file mode 100644 index 0000000..8ae4af6 --- /dev/null +++ b/z3-use-case/reviews/329575/review-34af7.md @@ -0,0 +1,11 @@ +# Score: 1 + +# Strengths / Mocne strony +* something 1 (very important) +* somethins 2 (important) +* something 3 + +# Weaknesses / Słabe strony +* something 1 (imporatant) +* something 2 (very very important) +* something 3 (moderate) diff --git a/z3-use-case/reviews/329575/solution-34af7.md b/z3-use-case/reviews/329575/solution-34af7.md new file mode 100644 index 0000000..3af2d6d --- /dev/null +++ b/z3-use-case/reviews/329575/solution-34af7.md @@ -0,0 +1,35 @@ +# Use Case 1: System usage / Użycie systemu + +## Primary actor / Aktor podstawowy: ... + +## Main actors and theirs goals and expectations / Główni odbiorcy i oczekiwania względem systemu +* ... +* ... + +## Preconditions / Warunki wstępne +Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. + +## Postconditions / Warunki końcowe +Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. + +## The main scenario (main or happy path) / Scenariusz główny (ścieżka podstawowa) + +1. ... +2. ... + +## Extensions (alternative paths) / Rozszerzenia (ścieżki alternatywne): +* ... +* ... + +## Additional requirements / Wymagania specjalne +* ... +* ... + +## Technological requirements and restrictions on the entered data / Wymagania technologiczne oraz ograniczenia na wprowadzane dane +* ... +* ... + +## Open issues / Kwestie otwarte +* ... +* ... +