Add && revise new unit tests on rankings

This commit is contained in:
armirveliaj
2024-10-23 11:05:14 -04:00
committed by Dan Christian Bogos
parent 90ec7d15a2
commit 05baa9fd86

View File

@@ -19,7 +19,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>
package engine
import (
"errors"
"reflect"
"testing"
@@ -285,21 +284,3 @@ func TestRankingDescSorterEmptyStatIDs(t *testing.T) {
t.Errorf("expected sortedStatIDs to be empty, got %v", sortedStatIDs)
}
}
func TestRankingSortStats(t *testing.T) {
sortingType := "sorting"
sortingParams := []string{"param1", "param2"}
Metrics := map[string]map[string]float64{
"STATS1": {"*acc": 12.1, "*tcc": 24.2},
"STATS2": {"*acc": 12.1, "*tcc": 24.3},
"STATS3": {"*acc": 10.1, "*tcc": 25.3},
}
_, err := rankingSortStats(sortingType, sortingParams, Metrics)
if err != nil {
errors.New("NOT_IMPLEMENTED:sorting")
}
}