File tree Expand file tree Collapse file tree 3 files changed +2
-3
lines changed
aockt-test/src/main/kotlin Expand file tree Collapse file tree 3 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ public class AocKtExtension(
62
62
internal companion object Key : CoroutineContext.Key<AocKtExtension>
63
63
}
64
64
65
+ /* * Configures which inputs the tests will run on. */
65
66
public enum class ExecMode {
66
67
/* * Run both tests and the user input, if available. */
67
68
All ,
Original file line number Diff line number Diff line change @@ -76,6 +76,7 @@ internal value class PuzzleInput(private val input: String): CharSequence by inp
76
76
override fun toString (): String = input
77
77
78
78
/* * Formats the input in a printable friendly manner. */
79
+ @Suppress(" MagicNumber" )
79
80
fun preview (): String = when (input.count { it == ' \n ' }) {
80
81
0 -> input
81
82
in 1 .. 5 -> " \n $input \n "
Original file line number Diff line number Diff line change 2
2
<SmellBaseline >
3
3
<ManuallySuppressedIssues />
4
4
<CurrentIssues >
5
- <ID >MagicNumber:TestData.kt$PuzzleInput$3</ID >
6
- <ID >MagicNumber:TestData.kt$PuzzleInput$5</ID >
7
- <ID >UndocumentedPublicClass:AocKtExtension.kt$ExecMode</ID >
8
5
</CurrentIssues >
9
6
</SmellBaseline >
You can’t perform that action at this time.
0 commit comments