From 22b1de127e89093ee0940cc0831625d00382e727 Mon Sep 17 00:00:00 2001 From: Peacanduck <39058246+Peacanduck@users.noreply.github.com> Date: Sun, 5 Jul 2026 15:46:40 +0200 Subject: [PATCH 1/2] Add test case for lose?(false , false) added missing test case refute Rules.lose?(false, false) to task 3 tests for Concept Pacman Rules --- exercises/concept/pacman-rules/test/rules_test.exs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/exercises/concept/pacman-rules/test/rules_test.exs b/exercises/concept/pacman-rules/test/rules_test.exs index 91a871b178..66d23ef459 100644 --- a/exercises/concept/pacman-rules/test/rules_test.exs +++ b/exercises/concept/pacman-rules/test/rules_test.exs @@ -55,6 +55,11 @@ defmodule RulesTest do test "don't lose if not touching a ghost" do refute Rules.lose?(true, false) end + + @tag task_id: 3 + test "don't lose if not touching a ghost without a power pellet active " do + refute Rules.lose?(false, false) + end end describe "win?/3" do From 4991d96ae6aa0a4dbcac8b53770437c33bd7e87d Mon Sep 17 00:00:00 2001 From: Angelika Cathor Date: Mon, 13 Jul 2026 08:04:26 +0200 Subject: [PATCH 2/2] Update test description --- exercises/concept/pacman-rules/test/rules_test.exs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exercises/concept/pacman-rules/test/rules_test.exs b/exercises/concept/pacman-rules/test/rules_test.exs index 66d23ef459..0289165ee0 100644 --- a/exercises/concept/pacman-rules/test/rules_test.exs +++ b/exercises/concept/pacman-rules/test/rules_test.exs @@ -52,12 +52,12 @@ defmodule RulesTest do end @tag task_id: 3 - test "don't lose if not touching a ghost" do + test "don't lose if not touching a ghost with a power pellet active" do refute Rules.lose?(true, false) end @tag task_id: 3 - test "don't lose if not touching a ghost without a power pellet active " do + test "don't lose if not touching a ghost without a power pellet active" do refute Rules.lose?(false, false) end end