From 0a032297085ef069ace5f2457ec7ed406e142f48 Mon Sep 17 00:00:00 2001 From: Michael Knudsen Date: Sun, 3 Dec 2023 14:49:39 +0100 Subject: [PATCH] Less extreme code formatting --- 2015/04/code.py | 32 ++++---------------------------- 1 file changed, 4 insertions(+), 28 deletions(-) diff --git a/2015/04/code.py b/2015/04/code.py index a0b83c6..497b15f 100644 --- a/2015/04/code.py +++ b/2015/04/code.py @@ -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): @@ -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)