inputData: add test for fnum 24 in 100D
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
leo 2023-02-15 14:16:14 +01:00
parent 27a0c6dbe3
commit bba409177c
Signed by: wanderer
SSH Key Fingerprint: SHA256:Dp8+iwKHSlrMEHzE3bJnPng70I7LEsa3IJXRH/U+idQ

@ -40,4 +40,23 @@ func TestLoadInputData(t *testing.T) {
if wantS != gotS { if wantS != gotS {
t.Errorf("unexpected result, want: %v, got: %v", 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)
}
} }