Commit 166b1ac7 authored by Vojtěch Horký's avatar Vojtěch Horký
Browse files

14: before class quiz

parent f7dade4b
......@@ -6,6 +6,12 @@ before-13:
script:
- ./bin/run_tests.sh quizzes/13
before-14:
stage: tests
image: registry.gitlab.com/mffd3s/nswi177/student:latest
script:
- ./bin/run_tests.sh quizzes/14
tasks-11:
stage: tests
image: registry.gitlab.com/mffd3s/nswi177/student:latest
......
#!/usr/bin/env bats
#> quiz: 14/before
load "../../nswi177"
@test "14/before.md - Submitted" {
fail_if_missing
}
@test "14/before.md - A1 answered" {
skip_if_missing
assert_quiz_answered "A1"
}
@test "14/before.md - A1 in correct format" {
skip_if_missing
skip_if_quiz_not_answered "A1"
assert_quiz_text "A1" "3"
}
@test "14/before.md - A2 answered" {
skip_if_missing
assert_quiz_answered "A2"
}
@test "14/before.md - A2 in correct format" {
skip_if_missing
skip_if_quiz_not_answered "A2"
assert_quiz_single "A2" "5"
}
@test "14/before.md - A3 answered" {
skip_if_missing
assert_quiz_answered "A3"
}
@test "14/before.md - A3 in correct format" {
skip_if_missing
skip_if_quiz_not_answered "A3"
assert_quiz_multi "A3" "6"
}
@test "14/before.md - A4 answered" {
skip_if_missing
assert_quiz_answered "A4"
}
......@@ -11,3 +11,4 @@
2022-04-20 2022-04-30 11/*.bats
2022-04-27 2022-05-07 12/*.bats
2022-05-03 2022-05-14 13/*.bats
2022-05-11 2022-05-21 14/*.bats
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment