Skip to content

Commit 49ce5eb

Browse files
committed
Minor formatting fixes.
1 parent b3fe6b8 commit 49ce5eb

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

aockt-test/src/main/kotlin/AdventSpec.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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.

aockt-test/src/main/kotlin/AocKtExtension.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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) }

aockt-test/src/main/kotlin/internal/AdventConfig.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
)

aockt-test/src/main/kotlin/internal/AdventRootScopeImpl.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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(

aockt-test/src/test/kotlin/internal/DslTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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),

0 commit comments

Comments
 (0)