Skip to content

Commit 71aac5e

Browse files
committed
Fix tests because StringConstantModelProvider doesn't mutate value anymore
1 parent 5fd4d6e commit 71aac5e

File tree

1 file changed

+2
-17
lines changed

1 file changed

+2
-17
lines changed

utbot-fuzzers/src/test/kotlin/org/utbot/framework/plugin/api/ModelProviderTest.kt

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -160,27 +160,12 @@ class ModelProviderTest {
160160
)
161161

162162
assertEquals(1, models.size)
163-
assertEquals(2, models[0]!!.size)
164-
listOf("nonemptystring", "nonemptystr`ng").forEach {
163+
assertEquals(1, models[0]!!.size)
164+
listOf("nonemptystring").forEach {
165165
assertTrue( models[0]!!.contains(UtPrimitiveModel(it))) { "Failed to find string $it in list ${models[0]}" }
166166
}
167167
}
168168

169-
@Test
170-
fun `test mutation creates the same values between different runs`() {
171-
repeat(10) {
172-
val models = collect(StringConstantModelProvider,
173-
parameters = listOf(stringClassId),
174-
constants = listOf(
175-
FuzzedConcreteValue(stringClassId, "anotherstring", FuzzedOp.CH),
176-
)
177-
)
178-
listOf("anotherstring", "anotherskring").forEach {
179-
assertTrue( models[0]!!.contains(UtPrimitiveModel(it))) { "Failed to find string $it in list ${models[0]}" }
180-
}
181-
}
182-
}
183-
184169
@Test
185170
@Suppress("unused", "UNUSED_PARAMETER", "RemoveEmptySecondaryConstructorBody")
186171
fun `test default object model creation for simple constructors`() {

0 commit comments

Comments
 (0)