We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f309bcf commit f9ee57dCopy full SHA for f9ee57d
1 file changed
tests/test_collatz_conjecture.py
@@ -36,11 +36,11 @@ def test_standard_flow(self):
36
37
def test_detailed_explanation(self):
38
"""Test the 'y' prompt for step-by-step details."""
39
- output = self.run_script(["3", "y"])
+ output = self.run_script(["3", "y", "n"])
40
self.assertIn("Detailed Steps:", output)
41
- self.assertIn("3 is odd ➡️ (3 x 3) + 1 = 10", output)
42
- self.assertIn("10 is even ➡️ 10 ÷ 2 = 5", output)
43
-
+ self.assertIn("3 is odd", output)
+ self.assertIn("= 10", output)
+
44
def test_mathematical_power_of_two(self):
45
"""Test a power of two (16), which should go straight to 1."""
46
# 16 -> 8 -> 4 -> 2 -> 1 (4 steps)
0 commit comments