File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
utbot-python/src/main/kotlin/org/utbot/python/fuzzing/provider Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -43,13 +43,13 @@ class NDArrayValueProvider(
43
43
PythonTree .NDArrayNode (
44
44
emptyMap<Int , PythonTree .PythonTreeNode >().toMutableMap(), // Generate new Python IntNode
45
45
((it.first().tree as PythonTree .ListNode ).items as Map <Int , PythonTree .PrimitiveNode >).values.map { node ->
46
- abs(node.repr.take(3 ).toInt()) % 7 // TODO: Fix this
46
+ abs(node.repr.take(2 ).toInt())
47
47
}
48
48
), " %var% = ${type.pythonTypeRepresentation()} "
49
49
)
50
50
},
51
51
modify = sequence {
52
- yield (Routine .Call ((0 until 10000 ). map{ param[1 ]}.toFuzzed()) { instance, arguments ->
52
+ yield (Routine .Call ((0 until 10000 ).map { param[1 ] }.toFuzzed()) { instance, arguments ->
53
53
val obj = instance.tree as PythonTree .NDArrayNode
54
54
(0 until obj.dimensions.fold(1 , Int ::times)).map {
55
55
obj.items[it] = arguments.get(it).tree
You can’t perform that action at this time.
0 commit comments