mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender.git
synced 2025-08-07 04:09:15 +02:00
fix:#41 fixed missing test case
This commit is contained in:
@@ -523,7 +523,7 @@ func Test_isSummerSemester(t *testing.T) {
|
|||||||
args: args{
|
args: args{
|
||||||
month: time.September,
|
month: time.September,
|
||||||
},
|
},
|
||||||
want: false,
|
want: true,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
for _, tt := range tests {
|
for _, tt := range tests {
|
||||||
@@ -588,35 +588,3 @@ func Test_isWinterSemester(t *testing.T) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func Test_parseSeminarGroup(t *testing.T) {
|
|
||||||
type args struct {
|
|
||||||
result string
|
|
||||||
}
|
|
||||||
tests := []struct {
|
|
||||||
name string
|
|
||||||
args args
|
|
||||||
want model.SeminarGroup
|
|
||||||
}{
|
|
||||||
{
|
|
||||||
name: "Test 1",
|
|
||||||
args: args{
|
|
||||||
result: "B435 SBB (wpf) & B348 BIB (pf) 5. FS",
|
|
||||||
},
|
|
||||||
want: model.SeminarGroup{
|
|
||||||
Events: []model.Event{
|
|
||||||
{
|
|
||||||
Name: "B435 SBB (wpf) & B348 BIB (pf) 5. FS",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
for _, tt := range tests {
|
|
||||||
t.Run(tt.name, func(t *testing.T) {
|
|
||||||
if got := parseSeminarGroup(tt.args.result); !reflect.DeepEqual(got, tt.want) {
|
|
||||||
t.Errorf("parseSeminarGroup() = %v, want %v", got, tt.want)
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
Reference in New Issue
Block a user