inputData: add test for fnum 24 in 100D
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
27a0c6dbe3
commit
bba409177c
@ -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)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user