-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDay5Test.php
35 lines (26 loc) · 859 Bytes
/
Day5Test.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
declare(strict_types=1);
namespace XonneX\AdventOfCode\Y2020\Solutions\Day5;
use PHPUnit\Framework\TestCase;
class Day5Test extends TestCase
{
/** @noinspection SpellCheckingInspection */
public function testSolvePartOneExample(): void
{
$day5 = new Day5();
self::assertSame(357, $day5->calculateSeatId('FBFBBFFRLR'));
self::assertSame(567, $day5->calculateSeatId('BFFFBBFRRR'));
self::assertSame(119, $day5->calculateSeatId('FFFBBBFRRR'));
self::assertSame(820, $day5->calculateSeatId('BBFFBBFRLL'));
}
public function testSolvePartOne(): void
{
$day5 = new Day5();
self::assertSame('987', $day5->solvePartOne());
}
public function testSolvePartTwo(): void
{
$day5 = new Day5();
self::assertSame('603', $day5->solvePartTwo());
}
}