diff --git a/bench/cec2020/inputData_test.go b/bench/cec2020/inputData_test.go index 70a984e..25d5c2f 100644 --- a/bench/cec2020/inputData_test.go +++ b/bench/cec2020/inputData_test.go @@ -40,4 +40,23 @@ func TestLoadInputData(t *testing.T) { if wantS != gotS { t.Errorf("unexpected result, want: %v, got: %v", wantS, gotS) } + + // test fnum 24 100D. + fnum = 24 + dim = 100 + m, s = LoadInputData(dim) + + wantM = 0.5743672086265577 + gotM = m[fnum][613][99] + + if wantM != gotM { + t.Errorf("unexpected result, want: %v, got: %v", wantM, gotM) + } + + wantS = 73.24860442860452 + gotS = s[fnum][7][89] + + if wantS != gotS { + t.Errorf("unexpected result, want: %v, got: %v", wantS, gotS) + } }