Fix style
This commit is contained in:
parent
4bd7608d85
commit
a5854da086
2 changed files with 7 additions and 8 deletions
|
@ -93,9 +93,9 @@ func TestGetCourseList_weirdScience(t *testing.T) {
|
|||
|
||||
func TestGetCourseList_strangeScience(t *testing.T) {
|
||||
var strangeScience = map[string][]string{
|
||||
"1": {"0"},
|
||||
"2": {"1", "3"},
|
||||
"3": {"2"},
|
||||
"1": {"0"},
|
||||
"2": {"1", "3"},
|
||||
"3": {"2"},
|
||||
}
|
||||
require.Panics(t, func() {
|
||||
impl(t, strangeScience, GetCourseList(strangeScience))
|
||||
|
|
|
@ -48,16 +48,15 @@ func TestComputeLoad_basic(t *testing.T) {
|
|||
result: []Load{{1, 1}, {2, 2}, {3, 3}, {4, 2}, {5, 1}, {6, 0}},
|
||||
},
|
||||
{
|
||||
title: "starting late",
|
||||
title: "starting late",
|
||||
guests: []Guest{{3, 7}, {5, 7}},
|
||||
result: []Load{{3, 1}, {5, 2}, {7,0}},
|
||||
result: []Load{{3, 1}, {5, 2}, {7, 0}},
|
||||
},
|
||||
{
|
||||
title: "unordered",
|
||||
title: "unordered",
|
||||
guests: []Guest{{4, 7}, {2, 4}, {2, 3}},
|
||||
result: []Load{{2,2}, {3, 1}, {7,0}},
|
||||
result: []Load{{2, 2}, {3, 1}, {7, 0}},
|
||||
},
|
||||
|
||||
} {
|
||||
t.Run(tc.title, func(t *testing.T) {
|
||||
require.Equal(t, tc.result, ComputeLoad(tc.guests))
|
||||
|
|
Loading…
Reference in a new issue