mirror of
https://github.com/RussellChamp/advent-of-code-2022.git
synced 2026-10-27 21:52:30 +00:00
day08 solution
This commit is contained in:
1 parent
6107f01523
commit
66bcee4230
3 files changed
+117
-1
No files matched your search
@@ -0,0 +1,20 @@
|
||||
import unittest
|
||||
import solve
|
||||
|
||||
class Day08TestMethods(unittest.TestCase):
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def test_score_row(self):
|
||||
test_cases = [
|
||||
[1, 5, [3]],
|
||||
[1, 5, [5,2]],
|
||||
[2, 5, [1,2]],
|
||||
[2, 5, [3,5,3]],
|
||||
[2, 5, [3,3]]
|
||||
]
|
||||
for [expected, height, row] in test_cases:
|
||||
self.assertEqual(solve.score_row(height, row), expected)
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
Reference in new issue
Block a user