Skip to content

Commit

Permalink
Less extreme code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
micknudsen committed Dec 3, 2023
1 parent c75e062 commit 0a03229
Showing 1 changed file with 4 additions and 28 deletions.
32 changes: 4 additions & 28 deletions 2015/04/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,8 @@ def mine_coin(

class TestCode(unittest.TestCase):
def test_mine_coin(self) -> None:
self.assertEqual(
mine_coin(
"abcdef",
hardness=5,
),
609043,
)
self.assertEqual(
mine_coin(
"pqrstuv",
hardness=5,
),
1048970,
)
self.assertEqual(mine_coin("abcdef", hardness=5), 609043)
self.assertEqual(mine_coin("pqrstuv", hardness=5), 1048970)


class TestPuzzle(unittest.TestCase):
Expand All @@ -42,19 +30,7 @@ def setUp(self) -> None:
self.key = f.read()

def test_part_one(self) -> None:
self.assertEqual(
mine_coin(
key=self.key,
hardness=5,
),
346386,
)
self.assertEqual(mine_coin(key=self.key, hardness=5), 346386)

def test_part_two(self) -> None:
self.assertEqual(
mine_coin(
key=self.key,
hardness=6,
),
9958218,
)
self.assertEqual(mine_coin(key=self.key, hardness=6), 9958218)

0 comments on commit 0a03229

Please sign in to comment.