Skip to content

Commit

Permalink
Fewer lines
Browse files Browse the repository at this point in the history
  • Loading branch information
micknudsen committed Aug 28, 2023
1 parent a0db0e0 commit fb6fbec
Showing 1 changed file with 5 additions and 20 deletions.
25 changes: 5 additions & 20 deletions 2015/10/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,26 +21,11 @@ def say(number: str) -> str:

class TestCode(unittest.TestCase):
def test_say(self) -> None:
self.assertEqual(
say(number="1"),
"11",
)
self.assertEqual(
say(number="11"),
"21",
)
self.assertEqual(
say(number="21"),
"1211",
)
self.assertEqual(
say(number="1211"),
"111221",
)
self.assertEqual(
say(number="111221"),
"312211",
)
self.assertEqual(say(number="1"), "11")
self.assertEqual(say(number="11"), "21")
self.assertEqual(say(number="21"), "1211")
self.assertEqual(say(number="1211"), "111221")
self.assertEqual(say(number="111221"), "312211")


class TestPuzzles(unittest.TestCase):
Expand Down

0 comments on commit fb6fbec

Please sign in to comment.