Skip to content

Commit c02883c

Browse files
authored
Enables 40 tests for utbot-summary module (#389)
* Repair testPow * Repaired ReturnExampleTest tests * Restored SummaryCycleTest.kt * Restored all the tests
1 parent 65c07f8 commit c02883c

File tree

7 files changed

+2023
-1175
lines changed

7 files changed

+2023
-1175
lines changed

utbot-summary-tests/src/test/kotlin/examples/SummaryTestCaseGeneratorTest.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ open class SummaryTestCaseGeneratorTest(
108108
/**
109109
* It removes from the String all whitespaces, tabs etc.
110110
*
111+
* Also, it replaces all randomly added words from [nextSynonyms] that totally influence on the determinism in test name generation.
112+
*
111113
* @see <a href="https://www.baeldung.com/java-regex-s-splus">Explanation of the used regular expression.</a>
112114
*/
113115
private fun String.normalize(): String {
@@ -141,7 +143,7 @@ open class SummaryTestCaseGeneratorTest(
141143
val notMatchedExecutions = this.filter { execution ->
142144
methodNames.none { methodName -> execution.testMethodName?.equals(methodName) == true }
143145
}
144-
Assertions.assertTrue(notMatchedExecutions.isEmpty()) { "Not matched display names ${summaries(notMatchedExecutions)}" }
146+
Assertions.assertTrue(notMatchedExecutions.isEmpty()) { "Not matched test names ${summaries(notMatchedExecutions)}" }
145147
}
146148

147149
fun List<UtExecution>.checkMatchersWithDisplayNames(

0 commit comments

Comments
 (0)