Skip to content

Commit

Permalink
test(utils): Use a shorter name for actualResult
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Viernau <[email protected]>
  • Loading branch information
fviernau committed Jan 15, 2024
1 parent 7032df2 commit 4d915d6
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions utils/ort/src/test/kotlin/CopyrightStatementsProcessorTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ class CopyrightStatementsProcessorTest : WordSpec({
val statements = File("src/test/assets/copyright-statements.txt").readLines()
val expectedResult = File("src/test/assets/copyright-statements-expected-output.yml").readText()

val actualResult = CopyrightStatementsProcessor.process(statements.shuffled()).toYaml()
val result = CopyrightStatementsProcessor.process(statements.shuffled()).toYaml()

actualResult shouldBe expectedResult
result shouldBe expectedResult
}

"group statements with upper-case (C)" {
Expand All @@ -46,12 +46,12 @@ class CopyrightStatementsProcessorTest : WordSpec({
"Copyright (C) 2022 The ORT Project Authors"
)

val actualResult = CopyrightStatementsProcessor.process(statements)
val result = CopyrightStatementsProcessor.process(statements)

actualResult.processedStatements.keys should containExactlyInAnyOrder(
result.processedStatements.keys should containExactlyInAnyOrder(
"Copyright (C) 2017, 2022 The ORT Project Authors"
)
actualResult.unprocessedStatements should beEmpty()
result.unprocessedStatements should beEmpty()
}

"group statements with lower-case (c)" {
Expand All @@ -60,12 +60,12 @@ class CopyrightStatementsProcessorTest : WordSpec({
"Copyright (c) 2022 The ORT Project Authors"
)

val actualResult = CopyrightStatementsProcessor.process(statements)
val result = CopyrightStatementsProcessor.process(statements)

actualResult.processedStatements.keys should containExactlyInAnyOrder(
result.processedStatements.keys should containExactlyInAnyOrder(
"Copyright (c) 2017, 2022 The ORT Project Authors"
)
actualResult.unprocessedStatements should beEmpty()
result.unprocessedStatements should beEmpty()
}

"not group statements with mixed-case (C) and (c)" {
Expand All @@ -74,13 +74,13 @@ class CopyrightStatementsProcessorTest : WordSpec({
"Copyright (c) 2022 The ORT Project Authors"
)

val actualResult = CopyrightStatementsProcessor.process(statements)
val result = CopyrightStatementsProcessor.process(statements)

actualResult.processedStatements.keys should containExactlyInAnyOrder(
result.processedStatements.keys should containExactlyInAnyOrder(
"Copyright (C) 2017 The ORT Project Authors",
"Copyright (c) 2022 The ORT Project Authors"
)
actualResult.unprocessedStatements should beEmpty()
result.unprocessedStatements should beEmpty()
}
}
})

0 comments on commit 4d915d6

Please sign in to comment.