Skip to content

Commit

Permalink
another test, for coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
muir committed Aug 4, 2022
1 parent 21dda0a commit 2186dbe
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions condense_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,15 @@ func TestCondenseSelfSatisfied(t *testing.T) {
condensed.String(),
"presentation of condensed")
}

func TestCondenseStringified(t *testing.T) {
c1 := nject.Sequence("x",
func() (int, string) { return 7, "foo" },
).MustCondense(true)
assert.Equal(t, " [<reflectiveFunc>() (int, string)]", c1.String(), "c1")

c2 := nject.Sequence("x",
func() float32 { return 7 },
).MustCondense(true)
assert.Equal(t, " [<reflectiveFunc>() float32]", c2.String(), "c2")
}

0 comments on commit 2186dbe

Please # to comment.