Skip to content

Commit 147ef2c

Browse files
committedNov 8, 2022
test: ensure type alias
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
1 parent cee4407 commit 147ef2c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
 

‎main_test.go

+7
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,13 @@ func TestColor(t *testing.T) {
3434
}
3535
}
3636

37+
func TestTypeAlias(t *testing.T) {
38+
var mocha Theme = Mocha
39+
if mocha.Name() != "mocha" {
40+
t.Errorf("expected Mocha, got %q", mocha.Name())
41+
}
42+
}
43+
3744
func TestFlavours(t *testing.T) {
3845
for _, flavour := range []Flavour{
3946
Mocha,

0 commit comments

Comments
 (0)
Please sign in to comment.