Skip to content

Commit 0f7da1f

Browse files
committed
yet more debugging
1 parent b90cd5b commit 0f7da1f

2 files changed

Lines changed: 10 additions & 9 deletions

File tree

  • core-tests/integration-tests/core-it/src/test/kotlin/org/evomaster/core/problem/rest
  • core/src/main/kotlin/org/evomaster/core/search/gene/collection

core-tests/integration-tests/core-it/src/test/kotlin/org/evomaster/core/problem/rest/SamplerVerifierTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class SamplerVerifierTest {
4343
fun debugIssue(): Collection<DynamicTest>{
4444
val tests = sampleFromSchemasAndCheckInvariants(
4545
//NOTE: can replace with a folder to debug
46-
"./src/test/resources/APIs_guru/velopayments.com/2.26.127",
46+
"./src/test/resources/APIs_guru/asuarez.dev/searchly/1.0",
4747
"APIs_guru",
4848
false)
4949
assertTrue(tests.isNotEmpty())

core/src/main/kotlin/org/evomaster/core/search/gene/collection/EnumGene.kt

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,15 @@ class EnumGene<T : Comparable<T>>(
8383
val list = elements
8484
.toList() // need ordering to specify index of selection, so Set would not do
8585
.map { if (it is String) it.intern() as T else it } //if strings, make sure to intern them
86-
.run {
87-
if(valueNames == null){
88-
sorted() // sort, to make meaningful list comparisons, but only if examples are not named.
89-
// otherwise we lose vector alignment
90-
} else {
91-
this
92-
}
93-
}
86+
.sorted() //FIXME replace. only for debugging
87+
// .run {
88+
// if(valueNames == null){
89+
// sorted() // sort, to make meaningful list comparisons, but only if examples are not named.
90+
// // otherwise we lose vector alignment
91+
// } else {
92+
// this
93+
// }
94+
// }
9495

9596
/*
9697
we need to make sure that, if we are adding a list that has content equal to

0 commit comments

Comments
 (0)