From 4d915d6e0aedf8548b6eb22116f06908b5fed11f Mon Sep 17 00:00:00 2001 From: Frank Viernau Date: Mon, 15 Jan 2024 10:47:38 +0100 Subject: [PATCH] test(utils): Use a shorter name for `actualResult` Signed-off-by: Frank Viernau --- .../CopyrightStatementsProcessorTest.kt | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/utils/ort/src/test/kotlin/CopyrightStatementsProcessorTest.kt b/utils/ort/src/test/kotlin/CopyrightStatementsProcessorTest.kt index b828c77708296..bb1fdcfcf7eaa 100644 --- a/utils/ort/src/test/kotlin/CopyrightStatementsProcessorTest.kt +++ b/utils/ort/src/test/kotlin/CopyrightStatementsProcessorTest.kt @@ -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)" { @@ -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)" { @@ -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)" { @@ -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() } } })