Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix pacman_rules by adding an extra test if all the dots are not eaten #519

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions exercises/concept/pacman-rules/test/pacman_rules_test.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,7 @@ pub fn dont_win_if_all_dots_eaten_but_touching_ghost_test() {
pub fn win_if_all_dots_eaten_and_touching_ghost_with_power_pellet_active_test() {
let assert True = pacman_rules.win(True, True, True)
}

pub fn dont_win_if_not_all_dots_eaten_test() {
let assert False = pacman_rules.win(False, False, False)
}