fix:#41 fixed missing test case

This commit is contained in:
Elmar Kresse
2024-06-24 15:13:57 +02:00
parent ff2fa1b67d
commit 3e2b3c3720

View File

@ -523,7 +523,7 @@ func Test_isSummerSemester(t *testing.T) {
args: args{
month: time.September,
},
want: false,
want: true,
},
}
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)
}
})
}
}