Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,7 @@ object TupleFixSizeValueProvider : ValueProvider<Type, PythonFuzzedValue, Python
)
},
modify = modifications.asSequence(),
empty = Routine.Empty { PythonFuzzedValue(
PythonTree.TupleNode(emptyMap<Int, PythonTree.PythonTreeNode>().toMutableMap()),
"%var% = ${type.pythonTypeRepresentation()}"
)}
empty = Routine.Empty { PythonFuzzedValue(PythonTree.FakeNode) }
))
}
}
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -34,6 +33,10 @@ fun <T : KnownValue> T.valueToString(): String {
}
}
is StringValue -> {
if (value.contains("\"\"\"")) {
val newValue = value.replace("\"", "\\\"")
return "'$newValue'"
}
return "'$value'"
}
else -> return toString()
Expand Down