check50

cs50/problems/2020/x/plurality


:) plurality.c exists

Log
checking that plurality.c exists...

:) plurality compiles

Log
running clang plurality.c -o plurality -std=c11 -ggdb -lm -lcs50...
running clang plurality_test.c -o plurality_test -std=c11 -ggdb -lm -lcs50...

:) vote returns true when given name of first candidate

:) vote returns true when given name of middle candidate

:) vote returns true when given name of last candidate

:) vote returns false when given name of invalid candidate

:) vote produces correct counts when all votes are zero

:) vote produces correct counts after some have already voted

:) vote leaves vote counts unchanged when voting for invalid candidate

:( print_winner identifies Alice as winner of election

Cause
print_winner function did not print winner of election

:( print_winner identifies Bob as winner of election

Cause
print_winner function did not print winner of election

:( print_winner identifies Charlie as winner of election

Cause
print_winner function did not print winner of election

:( print_winner prints multiple winners in case of tie

Cause
print_winner function did not print both winners of election

:( print_winner prints all names when all candidates are tied

Cause
print_winner function did not print all three winners of election