test includes negAspects

This commit is contained in:
Andreas Schröpfer
2021-01-02 20:01:24 +01:00
parent 8660dd4b88
commit 23214be74e
2 changed files with 12 additions and 1 deletions

Binary file not shown.

View File

@@ -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 {