示例#1
0
 def test_part2(self):
     self.assertEqual(part2(self.test_list), 19)
示例#2
0
 def test_part_2(self):
     self.assertEqual(
         main.part2('smallexample'),
         'R8d3f164890509c6510cc9bc975cb978f0b872fbb1781a6ea9a22f67e8a09cb54bbdc6d99d0efc081'
     )
示例#3
0
 def test_part2_returns_expected_answer(self):
     self.assertEqual(part2(), 3505711612)
示例#4
0
def test_part2():
    assert part2(expenses) == 241861950
示例#5
0
 def test_part_2_case_2(self):
     self.assertEqual(
         main.part2('leaf.txt'),
         'Rf4582a5fe4b346a54a44fbebba114f6fcef35839f4f4cd35f5a3c801fb7e701c834bff87d2b3adaa'
     )
示例#6
0
 def test_part2_returns_expected_answer(self):
     self.assertEqual(part2(), 27490)
示例#7
0
def test_part2():
    assert part2(entries) == 1
示例#8
0
 def test_part2_returns_expected_answer(self):
     self.assertEqual(part2(), 'bpacnmglhizqygfsjixtkwudr')
示例#9
0
def test_part2():
    assert part2(map_lines) == 336
示例#10
0
 def test_large(self):
     self.assertEqual(part2("^v^v^v^v^v"), 11)
示例#11
0
 def test_med(self):
     self.assertEqual(part2("^>v<"), 3)
示例#12
0
 def test_small(self):
     self.assertEqual(part2("^v"), 3)
示例#13
0
def test_part2():
    assert part2(missing_seat) == 1
示例#14
0
def test_part2():
    assert part2(invalid_passports) == 0
    assert part2(valid_passports) == len(valid_passports)