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