Skip to content

Commit 83cdbea

Browse files
committed
Resolve issues identified during pilot testing
1 parent af18b50 commit 83cdbea

2 files changed

Lines changed: 10 additions & 11 deletions

File tree

_sources/_hidden/mc_post_survey.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Thank you!
22
===========
33

4-
That's it! You have completed the practice problems and the post-survey. Your feedback is valuable to us, and we appreciate your time and effort in participating in this study.
4+
That's it! You have completed the practice problems and the post-survey (if applicable). Your feedback is valuable to us, and we appreciate your time and effort in participating in this study.
55

66
We hope you found the practice problems helpful in improving your understanding of nested dictionaries in Python.
77

_sources/_hidden/mc_posttest.rst

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -116,18 +116,17 @@ Please answer the following questions.
116116
117117
118118
====
119-
from unittest.gui import TestCaseGui
120-
121-
class myTests(TestCaseGui):
122119
123-
def testOne(self):
124-
125-
self.assertEqual(happy_hour_specials([("Classic", "Burger", True, 12), ("Veggie", "Burger", True, 14), ("Fish", "Burger", True, 16), ("Cheese", "Pizza", False, 20)]), {"Burger": {"Classic": 12, "Veggie": 14}})
126-
self.assertEqual(happy_hour_specials([("Mango", "Smoothie", True, 8), ("Green", "Smoothie", True, 12), ("Chocolate", "Milkshake", False, 15), ("Vanilla", "Milkshake", False, 18)]), {"Smoothie": {"Mango": 8, "Green": 12}})
127-
self.assertEqual(happy_hour_specials([("Spaghetti", "Pasta", True, 10), ("Alfredo", "Pasta", True, 12), ("Bolognese", "Pasta", False, 14), ("Seafood", "Pasta", True, 18)]), {"Pasta": {"Spaghetti": 10, "Alfredo": 12}})
128-
self.assertEqual(happy_hour_specials([("Margherita", "Pizza", True, 15), ("Pepperoni", "Pizza", False, 22), ("Hawaiian", "Pizza", True, 10), ("Caesar", "Salad", True, 10)]), {"Pizza": {"Margherita": 15, "Hawaiian": 10}, "Salad": {"Caesar": 10}})
120+
from unittest.gui import TestCaseGui
121+
122+
class myTests(TestCaseGui):
123+
def testOne(self):
124+
self.assertEqual(happy_hour_specials([("Classic", "Burger", True, 12), ("Veggie", "Burger", True, 14), ("Fish", "Burger", True, 16), ("Cheese", "Pizza", False, 20)]), {"Burger": {"Classic": 12, "Veggie": 14}})
125+
self.assertEqual(happy_hour_specials([("Mango", "Smoothie", True, 8), ("Green", "Smoothie", True, 12), ("Chocolate", "Milkshake", False, 15), ("Vanilla", "Milkshake", False, 18)]), {"Smoothie": {"Mango": 8, "Green": 12}})
126+
self.assertEqual(happy_hour_specials([("Spaghetti", "Pasta", True, 10), ("Alfredo", "Pasta", True, 12), ("Bolognese", "Pasta", False, 14), ("Seafood", "Pasta", True, 18)]), {"Pasta": {"Spaghetti": 10, "Alfredo": 12}})
127+
self.assertEqual(happy_hour_specials([("Margherita", "Pizza", True, 15), ("Pepperoni", "Pizza", False, 22), ("Hawaiian", "Pizza", True, 10), ("Caesar", "Salad", True, 10)]), {"Pizza": {"Margherita": 15, "Hawaiian": 10}, "Salad": {"Caesar": 10}})
129128
130-
myTests().main()
129+
myTests().main()
131130
132131
133132

0 commit comments

Comments
 (0)