test includes negAspects
This commit is contained in:
Binary file not shown.
@@ -38,6 +38,7 @@ func emptyMatrix() *Matrix {
|
|||||||
NegPointsFactor: 0,
|
NegPointsFactor: 0,
|
||||||
Calc: &ThemeCalc{},
|
Calc: &ThemeCalc{},
|
||||||
}
|
}
|
||||||
|
|
||||||
for i := 1; i <= 2; i++ {
|
for i := 1; i <= 2; i++ {
|
||||||
a := Aspect{
|
a := Aspect{
|
||||||
No: fmt.Sprintf("%s.%d", t.No, i),
|
No: fmt.Sprintf("%s.%d", t.No, i),
|
||||||
@@ -46,6 +47,16 @@ func emptyMatrix() *Matrix {
|
|||||||
}
|
}
|
||||||
t.Aspects = append(t.Aspects, a)
|
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)
|
s.Themes = append(s.Themes, &t)
|
||||||
}
|
}
|
||||||
m.Stakeholders = append(m.Stakeholders, &s)
|
m.Stakeholders = append(m.Stakeholders, &s)
|
||||||
@@ -62,7 +73,7 @@ func TestMatrix_BalancePoints(t *testing.T) {
|
|||||||
{
|
{
|
||||||
"",
|
"",
|
||||||
emptyMatrix(),
|
emptyMatrix(),
|
||||||
500,
|
100,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
for _, tt := range tests {
|
for _, tt := range tests {
|
||||||
|
|||||||
Reference in New Issue
Block a user