def test_solve(nstep, inp): # expect = 2188189693529 val = solve(*get_data("test_input"), nstep) expect = count(inp) assert val == expect
def test_solve(self): self.assertEqual(1068781, part2.solve('test_input.txt')) self.assertEqual(3417, part2.solve('test_input_2.txt')) self.assertEqual(754018, part2.solve('test_input_3.txt')) self.assertEqual(779210, part2.solve('test_input_4.txt')) self.assertEqual(1261476, part2.solve('test_input_5.txt')) self.assertEqual(1202161486, part2.solve('test_input_6.txt')) self.assertEqual(600691418730595, part2.solve('input.txt'))
def test_solve(self): self.assertEqual(421550, part2.solve('input.txt'))
def test_solve(self): self.assertEqual(848, part2.solve('test_input.txt')) self.assertEqual(247, part2.solve('input.txt'))
def test_solve(self): self.assertEqual('mxmxvkd,sqjhc,fvjkl', part2.solve('test_input.txt')) self.assertEqual('fntg,gtqfrp,xlvrggj,rlsr,xpbxbv,jtjtrd,fvjkp,zhszc', part2.solve('input.txt'))
def test_solve(self): self.assertEqual(273, part2.solve('test_input.txt')) self.assertEqual(2323, part2.solve('input.txt'))
def test_solve(self): self.assertEqual(1716, part2.solve('test_input_part2.txt', '')) self.assertEqual(3173135507987, part2.solve('input.txt', 'departure'))
def test_duration(self): input = [('C', 'A'), ('C', 'F'), ('A', 'B'), ('A', 'D'), ('B', 'E'), ('D', 'E'), ('F', 'E')] self.assertEqual(15, solve(input, base_cost=0, workers=2))
def test_solve(self): self.assertEqual(2208, part2.solve('test_input.txt')) self.assertEqual(3887, part2.solve('input.txt'))
def test_solve(self): self.assertEqual(208, part2.solve('test_input_part2.txt')) self.assertEqual(4795970362286, part2.solve('input.txt'))
def test_solve(self): self.assertEqual(12, part2.solve('test_input_part2.txt')) self.assertEqual(0, part2.solve('input_part2.txt'))
def test_solve(self): self.assertEqual(362880372308125, part2.solve('input.txt'))
def test_solve(self): self.assertEqual(2214, part2.solve('input.txt'))
def test_solve(self): self.assertEqual(101860, part2.solve('input.txt'))