File tree Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ import io.kotest.engine.coroutines.ThreadPerSpecCoroutineContextFactory
3434 * ")" shouldOutput 1
3535 * "()())" shouldOutput 5
3636 * }
37- * }
37+ * })
3838 * ```
3939 *
4040 * @param T The implementation class of the [Solution] to be tested.
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ import kotlin.time.Duration
2020 *
2121 * ```kotlin
2222 * object TestConfig : AbstractProjectConfig() {
23- * override val extensions = listOf<Extension>(AocktExtension ())
23+ * override val extensions = listOf<Extension>(AocKtExtension ())
2424 * }
2525 * ```
2626 *
@@ -55,7 +55,7 @@ public class AocKtExtension(
5555 /* * Provide project-level config to scopes of all advent specs. */
5656 override suspend fun intercept (
5757 spec : Spec ,
58- execute : suspend (Spec ) -> Unit
58+ execute : suspend (Spec ) -> Unit ,
5959 ) {
6060 if (spec is AdventSpec <* >) {
6161 withContext(currentCoroutineContext() + configuration) { execute(spec) }
Original file line number Diff line number Diff line change @@ -82,5 +82,5 @@ internal fun AdventTestConfig.forInput(defaults: AdventProjectConfig): AdventTes
8282 part = part,
8383 enabled = if (! enabled) false else (executionMode ? : defaults.executionMode) != ExecMode .ExamplesOnly ,
8484 partFunction = partFunction,
85- efficiencyBenchmark = efficiencyBenchmark ? : defaults.efficiencyBenchmark
85+ efficiencyBenchmark = efficiencyBenchmark ? : defaults.efficiencyBenchmark,
8686 )
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ internal class AdventRootScopeImpl(
2424 executionMode : ExecMode ? ,
2525 efficiencyBenchmark : Duration ? ,
2626 expensive : Boolean ,
27- examples : AdventPartScope .() -> Unit
27+ examples : AdventPartScope .() -> Unit ,
2828 ) {
2929 if (partOne != null ) throw DuplicateDefinitionException (owner, " partOne" )
3030 partOne = AdventTestConfig (
@@ -44,7 +44,7 @@ internal class AdventRootScopeImpl(
4444 executionMode : ExecMode ? ,
4545 efficiencyBenchmark : Duration ? ,
4646 expensive : Boolean ,
47- examples : AdventPartScope .() -> Unit
47+ examples : AdventPartScope .() -> Unit ,
4848 ) {
4949 if (partTwo != null ) throw DuplicateDefinitionException (owner, " partTwo" )
5050 partTwo = AdventTestConfig (
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ class DslTest : FunSpec({
112112 expensive = true,
113113 executionMode = ExecMode .SkipExamples ,
114114 efficiencyBenchmark = 10.seconds,
115- examples = listOf(PuzzleInput ("B ") to PuzzleAnswer ("1:B "))
115+ examples = listOf(PuzzleInput ("B ") to PuzzleAnswer ("1:B ")),
116116 )
117117 val configB = AdventTestConfig (
118118 id = AdventDayID (9999, 2),
You can’t perform that action at this time.
0 commit comments