Files
magpie/internal/gui/assets_test.go
T

15 lines
256 B
Go

package gui
import (
"mime"
"testing"
)
func TestAssetTypesHoldAgainstTheRegistry(t *testing.T) {
for ext, want := range assetTypes {
if got := mime.TypeByExtension(ext); got != want {
t.Errorf("%s served as %q, not %q", ext, got, want)
}
}
}