rating as float

This commit is contained in:
Andreas Schröpfer
2021-03-03 19:59:11 +01:00
parent 6853af3b66
commit 148502d151
4 changed files with 14 additions and 3 deletions

View File

@@ -3,6 +3,7 @@ package loader
import (
"bytes"
_ "embed"
"math"
"testing"
"github.com/matryer/is"
@@ -23,6 +24,9 @@ func TestXLSX(t *testing.T) {
is.Equal(got.CompanyFacts.FinancialCosts, 12)
is.Equal(got.CompanyFacts.EmployeesFractions[1].CountryCode, "AUT")
is.Equal(math.Round(got.CompanyFacts.Rating.Topics[0].Aspects[0].Points), math.Round(4))
is.Equal(math.Round(got.CompanyFacts.Rating.Topics[0].Aspects[1].Points), math.Round(-9))
is.Equal(got.Matrix.Topics[0].ShortName, "A1")
is.Equal(got.Matrix.Topics[0].MaxPoints, 44)
is.Equal(got.Matrix.Topics[4].ShortName, "B1")