Skip to content

Commit

Permalink
Groups: add unit test for String()
Browse files Browse the repository at this point in the history
  • Loading branch information
TerraTalpi committed Aug 30, 2021
1 parent 038162d commit bd19e9c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Groups_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package msgraph

import "testing"

func TestGroups_String(t *testing.T) {
testGroup := GetTestGroup(t)
groups := Groups{testGroup}
wanted := "Groups(" + testGroup.String() + ")"
if wanted != groups.String() {
t.Errorf("Groups.String() result: %v, wanted: %v", testGroup, wanted)
}
}

0 comments on commit bd19e9c

Please sign in to comment.