From a5854da086eb2ffff7aac5388c949a224dc22432 Mon Sep 17 00:00:00 2001 From: Fedor Korotkiy Date: Fri, 6 Mar 2020 00:02:39 +0300 Subject: [PATCH] Fix style --- hogwarts/courselist_test.go | 6 +++--- hotelbusiness/hotels_test.go | 9 ++++----- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/hogwarts/courselist_test.go b/hogwarts/courselist_test.go index 3009227..d7a83c6 100644 --- a/hogwarts/courselist_test.go +++ b/hogwarts/courselist_test.go @@ -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)) diff --git a/hotelbusiness/hotels_test.go b/hotelbusiness/hotels_test.go index 3197bf4..1882c19 100644 --- a/hotelbusiness/hotels_test.go +++ b/hotelbusiness/hotels_test.go @@ -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))