Skip to content

Commit

Permalink
test: make sure #310 is covered too
Browse files Browse the repository at this point in the history
closes #310
  • Loading branch information
caarlos0 committed Jun 19, 2024
1 parent 20d65dc commit 57aa5b2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions env_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2118,3 +2118,12 @@ func TestIssue317(t *testing.T) {
})
}
}

func TestIssue310(t *testing.T) {
type TestConfig struct {
URL *url.URL
}
cfg, err := ParseAs[TestConfig]()
isNoErr(t, err)
isEqual(t, nil, cfg.URL)
}

0 comments on commit 57aa5b2

Please sign in to comment.