-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
120 additions
and
3,998 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 15 additions & 4 deletions
19
adventofcode/src/test/java/org/ck/adventofcode/year2015/Day03Test.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,30 @@ | ||
package org.ck.adventofcode.year2015; | ||
|
||
import org.ck.adventofcode.util.BaseAOCTest; | ||
import org.junit.jupiter.api.Test; | ||
import org.junit.jupiter.params.ParameterizedTest; | ||
import org.junit.jupiter.params.provider.ValueSource; | ||
|
||
class Day03Test extends BaseAOCTest { | ||
@ParameterizedTest | ||
@ValueSource(strings = {"01", "01a", "01b", "01c"}) | ||
void testOne(String name) throws Exception { | ||
@ValueSource(strings = {"01a", "01b", "01c"}) | ||
void testPartOneExamples(String name) throws Exception { | ||
runTest(new Day03()::partOne, "day03/%s".formatted(name)); | ||
} | ||
|
||
@Test | ||
void testPartOne() throws Exception { | ||
runEncryptedTest(new Day03()::partOne, "day03/01"); | ||
} | ||
|
||
@ParameterizedTest | ||
@ValueSource(strings = {"02", "02a", "02b", "02c"}) | ||
void testTwo(String name) throws Exception { | ||
@ValueSource(strings = {"02a", "02b", "02c"}) | ||
void testPartTwoExamples(String name) throws Exception { | ||
runTest(new Day03()::partTwo, "day03/%s".formatted(name)); | ||
} | ||
|
||
@Test | ||
void testPartTwo() throws Exception { | ||
runEncryptedTest(new Day03()::partTwo, "day03/02"); | ||
} | ||
} |
17 changes: 11 additions & 6 deletions
17
adventofcode/src/test/java/org/ck/adventofcode/year2015/Day04Test.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,24 @@ | ||
package org.ck.adventofcode.year2015; | ||
|
||
import org.ck.adventofcode.util.BaseAOCTest; | ||
import org.junit.jupiter.api.Test; | ||
import org.junit.jupiter.params.ParameterizedTest; | ||
import org.junit.jupiter.params.provider.ValueSource; | ||
|
||
class Day04Test extends BaseAOCTest { | ||
@ParameterizedTest | ||
@ValueSource(strings = {"01", "01a", "01b"}) | ||
void testOne(String name) throws Exception { | ||
@ValueSource(strings = {"01a", "01b"}) | ||
void testPartOneExamples(String name) throws Exception { | ||
runTest(new Day04()::partOne, "day04/%s".formatted(name)); | ||
} | ||
|
||
@ParameterizedTest | ||
@ValueSource(strings = {"02"}) | ||
void testTwo(String name) throws Exception { | ||
runTest(new Day04()::partTwo, "day04/%s".formatted(name)); | ||
@Test | ||
void testPartOne() throws Exception { | ||
runEncryptedTest(new Day04()::partOne, "day04/01"); | ||
} | ||
|
||
@Test | ||
void testPartTwo() throws Exception { | ||
runEncryptedTest(new Day04()::partTwo, "day04/02"); | ||
} | ||
} |
19 changes: 15 additions & 4 deletions
19
adventofcode/src/test/java/org/ck/adventofcode/year2015/Day05Test.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,30 @@ | ||
package org.ck.adventofcode.year2015; | ||
|
||
import org.ck.adventofcode.util.BaseAOCTest; | ||
import org.junit.jupiter.api.Test; | ||
import org.junit.jupiter.params.ParameterizedTest; | ||
import org.junit.jupiter.params.provider.ValueSource; | ||
|
||
class Day05Test extends BaseAOCTest { | ||
@ParameterizedTest | ||
@ValueSource(strings = {"01", "01a", "01b", "01c", "01d", "01e"}) | ||
void testOne(String name) throws Exception { | ||
@ValueSource(strings = {"01a", "01b", "01c", "01d", "01e"}) | ||
void testPartOneExamples(String name) throws Exception { | ||
runTest(new Day05()::partOne, "day05/%s".formatted(name)); | ||
} | ||
|
||
@Test | ||
void testPartOne() throws Exception { | ||
runEncryptedTest(new Day05()::partOne, "day05/01"); | ||
} | ||
|
||
@ParameterizedTest | ||
@ValueSource(strings = {"02", "02a", "02b", "02c", "02d"}) | ||
void testTwo(String name) throws Exception { | ||
@ValueSource(strings = {"02a", "02b", "02c", "02d"}) | ||
void testPartTwoExamples(String name) throws Exception { | ||
runTest(new Day05()::partTwo, "day05/%s".formatted(name)); | ||
} | ||
|
||
@Test | ||
void testPartTwo() throws Exception { | ||
runEncryptedTest(new Day05()::partTwo, "day05/02"); | ||
} | ||
} |
17 changes: 7 additions & 10 deletions
17
adventofcode/src/test/java/org/ck/adventofcode/year2015/Day06Test.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,16 @@ | ||
package org.ck.adventofcode.year2015; | ||
|
||
import org.ck.adventofcode.util.BaseAOCTest; | ||
import org.junit.jupiter.params.ParameterizedTest; | ||
import org.junit.jupiter.params.provider.ValueSource; | ||
import org.junit.jupiter.api.Test; | ||
|
||
class Day06Test extends BaseAOCTest { | ||
@ParameterizedTest | ||
@ValueSource(strings = {"01"}) | ||
void testOne(String name) throws Exception { | ||
runTest(new Day06()::partOne, "day06/%s".formatted(name)); | ||
@Test | ||
void testPartOne() throws Exception { | ||
runEncryptedTest(new Day06()::partOne, "day06/01"); | ||
} | ||
|
||
@ParameterizedTest | ||
@ValueSource(strings = {"02"}) | ||
void testTwo(String name) throws Exception { | ||
runTest(new Day06()::partTwo, "day06/%s".formatted(name)); | ||
@Test | ||
void testPartTwo() throws Exception { | ||
runEncryptedTest(new Day06()::partTwo, "day06/02"); | ||
} | ||
} |
17 changes: 7 additions & 10 deletions
17
adventofcode/src/test/java/org/ck/adventofcode/year2015/Day07Test.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,16 @@ | ||
package org.ck.adventofcode.year2015; | ||
|
||
import org.ck.adventofcode.util.BaseAOCTest; | ||
import org.junit.jupiter.params.ParameterizedTest; | ||
import org.junit.jupiter.params.provider.ValueSource; | ||
import org.junit.jupiter.api.Test; | ||
|
||
class Day07Test extends BaseAOCTest { | ||
@ParameterizedTest | ||
@ValueSource(strings = {"01"}) | ||
void testOne(String name) throws Exception { | ||
runTest(new Day07()::partOne, "day07/%s".formatted(name)); | ||
@Test | ||
void testPartOne() throws Exception { | ||
runEncryptedTest(new Day07()::partOne, "day07/01"); | ||
} | ||
|
||
@ParameterizedTest | ||
@ValueSource(strings = {"02"}) | ||
void testTwo(String name) throws Exception { | ||
runTest(new Day07()::partTwo, "day07/%s".formatted(name)); | ||
@Test | ||
void testPartTwo() throws Exception { | ||
runEncryptedTest(new Day07()::partTwo, "day07/02"); | ||
} | ||
} |
19 changes: 15 additions & 4 deletions
19
adventofcode/src/test/java/org/ck/adventofcode/year2015/Day08Test.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,30 @@ | ||
package org.ck.adventofcode.year2015; | ||
|
||
import org.ck.adventofcode.util.BaseAOCTest; | ||
import org.junit.jupiter.api.Test; | ||
import org.junit.jupiter.params.ParameterizedTest; | ||
import org.junit.jupiter.params.provider.ValueSource; | ||
|
||
class Day08Test extends BaseAOCTest { | ||
@ParameterizedTest | ||
@ValueSource(strings = {"01", "01a"}) | ||
void testOne(String name) throws Exception { | ||
@ValueSource(strings = {"01a"}) | ||
void testPartOneExamples(String name) throws Exception { | ||
runTest(new Day08()::partOne, "day08/%s".formatted(name)); | ||
} | ||
|
||
@Test | ||
void testPartOne() throws Exception { | ||
runEncryptedTest(new Day08()::partOne, "day08/01"); | ||
} | ||
|
||
@ParameterizedTest | ||
@ValueSource(strings = {"02", "02a"}) | ||
void testTwo(String name) throws Exception { | ||
@ValueSource(strings = {"02a"}) | ||
void testPartTwoExamples(String name) throws Exception { | ||
runTest(new Day08()::partTwo, "day08/%s".formatted(name)); | ||
} | ||
|
||
@Test | ||
void testPartTwo() throws Exception { | ||
runEncryptedTest(new Day08()::partTwo, "day08/02"); | ||
} | ||
} |
19 changes: 15 additions & 4 deletions
19
adventofcode/src/test/java/org/ck/adventofcode/year2015/Day09Test.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,30 @@ | ||
package org.ck.adventofcode.year2015; | ||
|
||
import org.ck.adventofcode.util.BaseAOCTest; | ||
import org.junit.jupiter.api.Test; | ||
import org.junit.jupiter.params.ParameterizedTest; | ||
import org.junit.jupiter.params.provider.ValueSource; | ||
|
||
class Day09Test extends BaseAOCTest { | ||
@ParameterizedTest | ||
@ValueSource(strings = {"01", "01a"}) | ||
void testOne(String name) throws Exception { | ||
@ValueSource(strings = {"01a"}) | ||
void testPartOneExamples(String name) throws Exception { | ||
runTest(new Day09()::partOne, "day09/%s".formatted(name)); | ||
} | ||
|
||
@Test | ||
void testPartOne() throws Exception { | ||
runEncryptedTest(new Day09()::partOne, "day09/01"); | ||
} | ||
|
||
@ParameterizedTest | ||
@ValueSource(strings = {"02", "02a"}) | ||
void testTwo(String name) throws Exception { | ||
@ValueSource(strings = {"02a"}) | ||
void testPartTwoExamples(String name) throws Exception { | ||
runTest(new Day09()::partTwo, "day09/%s".formatted(name)); | ||
} | ||
|
||
@Test | ||
void testPartTwo() throws Exception { | ||
runEncryptedTest(new Day09()::partTwo, "day09/02"); | ||
} | ||
} |
17 changes: 11 additions & 6 deletions
17
adventofcode/src/test/java/org/ck/adventofcode/year2015/Day10Test.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,24 @@ | ||
package org.ck.adventofcode.year2015; | ||
|
||
import org.ck.adventofcode.util.BaseAOCTest; | ||
import org.junit.jupiter.api.Test; | ||
import org.junit.jupiter.params.ParameterizedTest; | ||
import org.junit.jupiter.params.provider.ValueSource; | ||
|
||
class Day10Test extends BaseAOCTest { | ||
@ParameterizedTest | ||
@ValueSource(strings = {"01", "01a"}) | ||
void testOne(String name) throws Exception { | ||
@ValueSource(strings = {"01a"}) | ||
void testPartOneExamples(String name) throws Exception { | ||
runTest(new Day10()::partOne, "day10/%s".formatted(name)); | ||
} | ||
|
||
@ParameterizedTest | ||
@ValueSource(strings = {"02"}) | ||
void testTwo(String name) throws Exception { | ||
runTest(new Day10()::partTwo, "day10/%s".formatted(name)); | ||
@Test | ||
void testPartOne() throws Exception { | ||
runEncryptedTest(new Day10()::partOne, "day10/01"); | ||
} | ||
|
||
@Test | ||
void testPartTwo() throws Exception { | ||
runEncryptedTest(new Day10()::partTwo, "day10/02"); | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
adventofcode/src/test/resources/org/ck/adventofcode/year2015/day03/01.txt
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
adventofcode/src/test/resources/org/ck/adventofcode/year2015/day03/02.txt
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
adventofcode/src/test/resources/org/ck/adventofcode/year2015/day04/01.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
bgvyzdsv | ||
qdw18zzqV7G+VBXSP+xdIw==@5ei/SlrGvTrI72M7ulBQbDHmhy3O6niw |
2 changes: 1 addition & 1 deletion
2
adventofcode/src/test/resources/org/ck/adventofcode/year2015/day04/02.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
bgvyzdsv | ||
qdw18zzqV7G+VBXSP+xdIw==@5ei/SlrGvTrI72M7ulBQbDHmhy3O6niw |
Oops, something went wrong.