-
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
13 changed files
with
122 additions
and
2,011 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
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
15 changes: 13 additions & 2 deletions
15
adventofcode/src/test/java/org/ck/adventofcode/year2015/Day01Test.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 Day01Test extends BaseAOCTest { | ||
@ParameterizedTest | ||
@ValueSource(strings = {"01", "01a", "01b", "01c", "01d", "01e", "01f", "01g", "01h", "01i"}) | ||
@ValueSource(strings = {"01a", "01b", "01c", "01d", "01e", "01f", "01g", "01h", "01i"}) | ||
void testOne(String name) throws Exception { | ||
runTest(new Day01()::partOne, "day01/%s".formatted(name)); | ||
} | ||
|
||
@Test | ||
void testOne() throws Exception { | ||
runEncryptedTest(new Day01()::partOne, "day01/01"); | ||
} | ||
|
||
@ParameterizedTest | ||
@ValueSource(strings = {"02", "02a", "02b"}) | ||
@ValueSource(strings = {"02a", "02b"}) | ||
void testTwo(String name) throws Exception { | ||
runTest(new Day01()::partTwo, "day01/%s".formatted(name)); | ||
} | ||
|
||
@Test | ||
void testTwo() throws Exception { | ||
runEncryptedTest(new Day01()::partTwo, "day01/02"); | ||
} | ||
} |
15 changes: 13 additions & 2 deletions
15
adventofcode/src/test/java/org/ck/adventofcode/year2015/Day02Test.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 Day02Test extends BaseAOCTest { | ||
@ParameterizedTest | ||
@ValueSource(strings = {"01", "01a", "01b"}) | ||
@ValueSource(strings = {"01a", "01b"}) | ||
void testOne(String name) throws Exception { | ||
runTest(new Day02()::partOne, "day02/%s".formatted(name)); | ||
} | ||
|
||
@Test | ||
void testOne() throws Exception { | ||
runEncryptedTest(new Day02()::partOne, "day02/01"); | ||
} | ||
|
||
@ParameterizedTest | ||
@ValueSource(strings = {"02", "02a", "02b"}) | ||
@ValueSource(strings = {"02a", "02b"}) | ||
void testTwo(String name) throws Exception { | ||
runTest(new Day02()::partTwo, "day02/%s".formatted(name)); | ||
} | ||
|
||
@Test | ||
void testTwo() throws Exception { | ||
runEncryptedTest(new Day02()::partTwo, "day02/02"); | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
adventofcode/src/test/resources/org/ck/adventofcode/year2015/day01/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/day01/02.txt
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.