diff --git a/utbot-python/src/main/kotlin/org/utbot/python/fuzzing/provider/TupleFixSizeValueProvider.kt b/utbot-python/src/main/kotlin/org/utbot/python/fuzzing/provider/TupleFixSizeValueProvider.kt index 3b755d0fdc..8725345ae3 100644 --- a/utbot-python/src/main/kotlin/org/utbot/python/fuzzing/provider/TupleFixSizeValueProvider.kt +++ b/utbot-python/src/main/kotlin/org/utbot/python/fuzzing/provider/TupleFixSizeValueProvider.kt @@ -33,10 +33,7 @@ object TupleFixSizeValueProvider : ValueProvider().toMutableMap()), - "%var% = ${type.pythonTypeRepresentation()}" - )} + empty = Routine.Empty { PythonFuzzedValue(PythonTree.FakeNode) } )) } } \ No newline at end of file diff --git a/utbot-python/src/main/kotlin/org/utbot/python/fuzzing/provider/utils/SummaryGeneration.kt b/utbot-python/src/main/kotlin/org/utbot/python/fuzzing/provider/utils/SummaryGeneration.kt index 1b3bb9c259..aaff31ea5b 100644 --- a/utbot-python/src/main/kotlin/org/utbot/python/fuzzing/provider/utils/SummaryGeneration.kt +++ b/utbot-python/src/main/kotlin/org/utbot/python/fuzzing/provider/utils/SummaryGeneration.kt @@ -1,7 +1,6 @@ package org.utbot.python.fuzzing.provider.utils import org.utbot.fuzzing.seeds.BitVectorValue -import org.utbot.fuzzing.seeds.Bool import org.utbot.fuzzing.seeds.DefaultFloatBound import org.utbot.fuzzing.seeds.IEEE754Value import org.utbot.fuzzing.seeds.KnownValue @@ -34,6 +33,10 @@ fun T.valueToString(): String { } } is StringValue -> { + if (value.contains("\"\"\"")) { + val newValue = value.replace("\"", "\\\"") + return "'$newValue'" + } return "'$value'" } else -> return toString()