From 3e23b631c617691112650b9442267727c67640f7 Mon Sep 17 00:00:00 2001 From: felipeog <17603069+felipeog@users.noreply.github.com> Date: Mon, 9 Sep 2024 20:57:27 -0300 Subject: [PATCH] format --- practice/exercism/003-party-robot/party_robot_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/practice/exercism/003-party-robot/party_robot_test.go b/practice/exercism/003-party-robot/party_robot_test.go index acc35b2..d3e674a 100644 --- a/practice/exercism/003-party-robot/party_robot_test.go +++ b/practice/exercism/003-party-robot/party_robot_test.go @@ -22,6 +22,7 @@ func TestWelcome(t *testing.T) { want: "Welcome to my party, Xuân Jing!", }, } + for _, tt := range tests { t.Run(tt.description, func(t *testing.T) { if got := Welcome(tt.name); got != tt.want { @@ -51,6 +52,7 @@ func TestHappyBirthday(t *testing.T) { want: "Happy birthday Xuân Jing! You are now 17 years old!", }, } + for _, tt := range tests { t.Run(tt.description, func(t *testing.T) { if got := HappyBirthday(tt.name, tt.age); got != tt.want { @@ -98,6 +100,7 @@ func TestAssignTable(t *testing.T) { want: "Welcome to my party, Paula!\nYou have been assigned to table 101. Your table is on the right, exactly 100.0 meters from here.\nYou will be sitting next to Chioma.", }, } + for _, tt := range tests { t.Run(tt.description, func(t *testing.T) { if got := AssignTable(tt.name, tt.tableNumber, tt.seatmate, tt.direction, tt.distance); got != tt.want {