diff --git a/MatrixBerechnung.ods b/MatrixBerechnung.ods index 8d819c0..8d38d99 100644 Binary files a/MatrixBerechnung.ods and b/MatrixBerechnung.ods differ diff --git a/matrix_test.go b/matrix_test.go index 2a80471..b2de722 100644 --- a/matrix_test.go +++ b/matrix_test.go @@ -38,6 +38,7 @@ func emptyMatrix() *Matrix { NegPointsFactor: 0, Calc: &ThemeCalc{}, } + for i := 1; i <= 2; i++ { a := Aspect{ No: fmt.Sprintf("%s.%d", t.No, i), @@ -46,6 +47,16 @@ func emptyMatrix() *Matrix { } t.Aspects = append(t.Aspects, a) } + for i := 3; i <= 4; i++ { + a := NegativeAspect{ + Aspect{ + No: fmt.Sprintf("%s.%d", t.No, i), + Weight: 1, + ValuationPoints: -10, + }, + } + t.NegativeAspects = append(t.NegativeAspects, a) + } s.Themes = append(s.Themes, &t) } m.Stakeholders = append(m.Stakeholders, &s) @@ -62,7 +73,7 @@ func TestMatrix_BalancePoints(t *testing.T) { { "", emptyMatrix(), - 500, + 100, }, } for _, tt := range tests {