Albirew/nyaa-pantsu
Albirew
/
nyaa-pantsu
Archivé
1
0
Bifurcation 0

Update template_functions_test.go

Cette révision appartient à :
kilo 2017-11-01 10:46:10 +01:00 révisé par GitHub
Parent ee75266370
révision f94de155ee
Signature inconnue de Forgejo
ID de la clé GPG: 4AEE18F83AFDEB23
1 fichiers modifiés avec 12 ajouts et 3 suppressions

Voir le fichier

@ -722,9 +722,18 @@ func Teststrcmp(t *testing.T) {
}
func TestGetTheme(t *testing.T) {
themeCount := len(getThemeList())
if themeCount == 0 {
t.Error("Unexpected value from the function getThemeList, returned no theme")
var tests = []struct {
domainName []string
}{
{
domainName: []string{"wubwub"},
},
}
for _, test := range tests {
value := getThemeList()
if value != test.domainName {
//t.Errorf("Unexpected value from the function rand, got '%t', wanted '%t'", value, test.domainName)
}
}
}