Skip to content

Commit 22f957c

Browse files
committed
Advent of Code 2021 - Day 11 blog post + Day 12 setup
1 parent eb065ce commit 22f957c

File tree

3 files changed

+46
-1
lines changed

3 files changed

+46
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,5 @@ Last year I ran a [cruise log for my 25 days competing in the Advent of Code](ht
2727
- [The Advent of Code 2021 Day 7 log, return of the crab](https://www.codingnagger.com/2021/12/07/the-advent-of-code-2021-day-7-log-return-of-the-crab/)
2828
- [The Advent of Code 2021 Day 8, Bruteforce for the win](https://www.codingnagger.com/2021/12/08/the-advent-of-code-2021-day-8-bruteforce-for-the-win/)
2929
- [The Advent of Code 2021 Day 9, quiet before the storm?](https://www.codingnagger.com/2021/12/09/the-advent-of-code-2021-day-9-quiet-before-the-storm/)
30-
- [The Advent of Code 2021 Day 10, stacking old knowledge](https://www.codingnagger.com/2021/12/10/the-advent-of-code-2021-day-10-stacking-old-knowledge/)
30+
- [The Advent of Code 2021 Day 10, stacking old knowledge](https://www.codingnagger.com/2021/12/10/the-advent-of-code-2021-day-10-stacking-old-knowledge/)
31+
- [The Advent of Code 2021 Day 11, Octopussy light](https://www.codingnagger.com/2021/12/11/the-advent-of-code-2021-day-11-octopussy-light/)
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package com.codingnagger.days;
2+
3+
import java.util.List;
4+
5+
public class Day12 implements Day {
6+
@Override
7+
public String partOne(List<String> input) {
8+
return null;
9+
}
10+
11+
@Override
12+
public String partTwo(List<String> input) {
13+
return null;
14+
}
15+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
package com.codingnagger.days;
2+
3+
import com.codingnagger.utils.InputLoader;
4+
import org.junit.jupiter.api.Test;
5+
import org.junit.jupiter.params.ParameterizedTest;
6+
import org.junit.jupiter.params.provider.CsvSource;
7+
8+
import java.util.List;
9+
10+
import static org.assertj.core.api.Assertions.assertThat;
11+
12+
public class Day12Test {
13+
private static final List<String> INPUT = InputLoader.LoadTest("day12.txt");
14+
private static final Day DAY = new Day12();
15+
16+
@Test
17+
public void partOne_shoudlYieldCorrectResult() {
18+
String result = DAY.partOne(INPUT);
19+
20+
assertThat(result).isEqualTo("");
21+
}
22+
23+
@Test
24+
public void partTwo_shoudlYieldCorrectResult() {
25+
String result = DAY.partTwo(INPUT);
26+
27+
assertThat(result).isEqualTo("");
28+
}
29+
}

0 commit comments

Comments
 (0)