Example #1
0
def test_part1():
    assert part1(expenses) == 514579
Example #2
0
 def test_part1_returns_expected_answer(self):
     self.assertEqual(part1(), 418237)
Example #3
0
def test_part1():
    assert part1(entries) == 2
Example #4
0
def test_part1():
    assert part1(map_lines) == 7
Example #5
0
 def test_part1_returns_expected_answer(self):
     self.assertEqual(part1(), 'AHJDBEMNFQUPVXGCTYLWZKSROI')
Example #6
0
def test_part1():
    assert part1(["FBFBBFFRLR"]) == 357
    assert part1(["BFFFBBFRRR"]) == 567
    assert part1(["FFFBBBFRRR"]) == 119
    assert part1(["BBFFBBFRLL"]) == 820
    assert part1(["FBFBBFFRLR", "BFFFBBFRRR", "FFFBBBFRRR", "BBFFBBFRLL"]) == 820
Example #7
0
def test_part1():
    assert part1(passports) == 2