-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed some comments and fixed initialization script
- Loading branch information
Showing
5 changed files
with
16 additions
and
14 deletions.
There are no files selected for viewing
8 changes: 5 additions & 3 deletions
8
...otlin_template/src/benchmarks/kotlin/com/github/acimon33/aoc2023/day00/PuzzleBenchmark.kt
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
3 changes: 1 addition & 2 deletions
3
2023/00/kotlin_template/src/main/kotlin/com/github/acsimon33/aoc2023/day00/App.kt
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
5 changes: 3 additions & 2 deletions
5
...plate/src/main/kotlin/com/github/acsimon33/aoc2023/day00/kotlinTemplate/KotlinTemplate.kt
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
12 changes: 7 additions & 5 deletions
12
2023/00/kotlin_template/src/test/kotlin/com/github/acsimon33/aoc2023/day00/ExampleTest.kt
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,25 +1,27 @@ | ||
package com.github.acsimon33.aoc2023.day00 | ||
|
||
// Import Solution | ||
// Import solution and testing framework | ||
import com.github.acsimon33.aoc2023.day00.kotlinTemplate.KotlinTemplate | ||
import java.io.File | ||
import kotlin.test.Test | ||
import kotlin.test.assertEquals | ||
|
||
// Example input | ||
/** Example input */ | ||
const val INPUT_FILENAME: String = "./input/example_input.txt" | ||
|
||
/** Example test framework */ | ||
class ExampleTest { | ||
// KotlinTemplate App | ||
val app = KotlinTemplate(File(INPUT_FILENAME).readText(Charsets.UTF_8)) | ||
|
||
/** First task test */ | ||
@Test | ||
fun task_1() { | ||
fun task1() { | ||
assertEquals(app.solution1(), 0, "Example result for task 1 is wrong") | ||
} | ||
|
||
/** Second task test */ | ||
@Test | ||
fun task_2() { | ||
fun task2() { | ||
assertEquals(app.solution2(), 1, "Example result for task 2 is wrong") | ||
} | ||
} |
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