Beispiel #1
0
 def test_input(self):
     self.assertEqual(14204, day09.calc_a(getInput()))
Beispiel #2
0
 def test_case_group_7(self):
         self.assertEqual(9, day09.calc_a('{{<!!>},{<!!>},{<!!>},{<!!>}}'))
Beispiel #3
0
 def test_case_group_8(self):
         self.assertEqual(3, day09.calc_a('{{<a!>},{<a!>},{<a!>},{<ab>}}'))
Beispiel #4
0
 def test_case_group_4(self):
         self.assertEqual(16, day09.calc_a('{{{},{},{{}}}}'))
Beispiel #5
0
 def test_case_group_5(self):
         self.assertEqual(1, day09.calc_a('{<a>,<a>,<a>,<a>}'))
Beispiel #6
0
 def test_case_group_1(self):
         self.assertEqual(1, day09.calc_a('{}'))
Beispiel #7
0
 def test_case_group_3(self):
         self.assertEqual(5, day09.calc_a('{{},{}}'))
Beispiel #8
0
 def test_case_garbage_7(self):
         self.assertEqual(0, day09.calc_a('<{o"i!a,<{i<a>'))
Beispiel #9
0
 def test_case_garbage_6(self):
         self.assertEqual(0, day09.calc_a("<!!!>>"))
Beispiel #10
0
 def test_case_garbage_4(self):
         self.assertEqual(0, day09.calc_a("<{!>}>"))
Beispiel #11
0
 def test_case_garbage_3(self):
         self.assertEqual(0, day09.calc_a("<<<<>"))
Beispiel #12
0
 def test_case_garbage_2(self):
         self.assertEqual(0, day09.calc_a("<random characters>"))