Skip to content

Commit

Permalink
fix sort numbers description, add minimal input tests in documenting …
Browse files Browse the repository at this point in the history
…& testing
  • Loading branch information
colevandersWands committed Dec 12, 2024
1 parent 42bdcef commit 7d0bd26
Show file tree
Hide file tree
Showing 10 changed files with 56 additions and 3 deletions.
4 changes: 4 additions & 0 deletions 3_documenting_and_testing/exercises/tests/test_mystery_1.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@

class TestMystery1(unittest.TestCase):
""" """

def test_minimal_input(self):
""""""
self.assertEqual(mystery_1(0, 0), 0)
8 changes: 8 additions & 0 deletions 3_documenting_and_testing/exercises/tests/test_mystery_2.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,11 @@

class TestMystery2(unittest.TestCase):
""" """

def test_minimal_list_input(self):
""""""
self.assertEqual(mystery_2([]), None)

def test_minimal_string_input(self):
""""""
self.assertEqual(mystery_2(''), None)
4 changes: 4 additions & 0 deletions 3_documenting_and_testing/exercises/tests/test_mystery_3.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@

class TestMystery3(unittest.TestCase):
""" """

def test_minimal_input(self):
""""""
self.assertEqual(mystery_3(0, 0), 0)
4 changes: 4 additions & 0 deletions 3_documenting_and_testing/exercises/tests/test_mystery_4.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@

class TestMystery4(unittest.TestCase):
""" """

def test_minimal_input(self):
""""""
self.assertEqual(mystery_4(0), [])
12 changes: 12 additions & 0 deletions 3_documenting_and_testing/exercises/tests/test_mystery_5.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,15 @@

class TestMystery5(unittest.TestCase):
""" """

def test_minimal_input(self):
""""""
self.assertEqual(mystery_5([], []), [])

def test_minimal_input_none(self):
""""""
self.assertEqual(mystery_5([], None), [])

def test_minimal_input_default_argument(self):
""""""
self.assertEqual(mystery_5([]), [])
4 changes: 4 additions & 0 deletions 3_documenting_and_testing/exercises/tests/test_mystery_6.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@

class TestMystery6(unittest.TestCase):
""" """

def test_minimal_input(self):
""""""
self.assertEqual(mystery_6(0, 0), [])
8 changes: 8 additions & 0 deletions 3_documenting_and_testing/exercises/tests/test_mystery_7.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,11 @@

class TestMystery7(unittest.TestCase):
""" """

def test_minimal_input_list(self):
""""""
self.assertEqual(mystery_7([], []), [])

def test_minimal_input_string(self):
""""""
self.assertEqual(mystery_7('', ''), [])
4 changes: 4 additions & 0 deletions 3_documenting_and_testing/exercises/tests/test_mystery_8.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@

class TestMystery8(unittest.TestCase):
""" """

def test_minimal_input(self):
""""""
self.assertEqual(mystery_8([], ''), [])
4 changes: 4 additions & 0 deletions 3_documenting_and_testing/exercises/tests/test_mystery_9.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@

class TestMystery9(unittest.TestCase):
""" """

def test_minimal_input(self):
""""""
self.assertEqual(mystery_9([]), [])
7 changes: 4 additions & 3 deletions 5_tdd_with_llms/exercises/sort_numbers.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
""" Inclusive Or
""" Sort Numbers
Write a function that takes in a string and two lists of strings.
It will return true if the item is in _at least one_ of the lists.
Write a function that takes in a list of numbers
It will return a new list with the same numbers from lowest to highets
-> this function does not have side effects
"""

0 comments on commit 7d0bd26

Please sign in to comment.