Skip to content

Commit

Permalink
test: ensure type alias
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos A Becker <[email protected]>
  • Loading branch information
caarlos0 committed Nov 8, 2022
1 parent cee4407 commit 147ef2c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ func TestColor(t *testing.T) {
}
}

func TestTypeAlias(t *testing.T) {
var mocha Theme = Mocha
if mocha.Name() != "mocha" {
t.Errorf("expected Mocha, got %q", mocha.Name())
}
}

func TestFlavours(t *testing.T) {
for _, flavour := range []Flavour{
Mocha,
Expand Down

0 comments on commit 147ef2c

Please sign in to comment.