Skip to content

Commit

Permalink
Update minecraft_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
a3510377 committed May 5, 2024
1 parent 86a4c3f commit 0b0ec23
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions server/utils/minecraft_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ func TestGetMinecraftInfoFromName(t *testing.T) {
}
}

func TestGetMinecraftInfosFrom10Names(t *testing.T) {
// test 1.
func TestGetMinecraftInfosFrom10Names_1(t *testing.T) {
names := []string{
"Steve", "Alex", "Noor", "Sunny", "Ari",
"Zuri", "Makena", "Kai", "Efe",
Expand All @@ -54,10 +53,11 @@ func TestGetMinecraftInfosFrom10Names(t *testing.T) {
t.Errorf("Expected %v, got nil", diff)
}
}
}

// test 2.
names = []string{"-test", "+test"}
infos, err = GetMinecraftInfosFrom10Names(names)
func TestGetMinecraftInfosFrom10Names_2(t *testing.T) {
names := []string{"-test", "+test"}
_, err := GetMinecraftInfosFrom10Names(names)
if err != nil {
t.Error(err)
}
Expand Down

0 comments on commit 0b0ec23

Please sign in to comment.