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

Update template_functions_test.go

Cette révision appartient à :
kilo 2017-11-01 08:30:09 +01:00 révisé par GitHub
Parent 9d0acffc8e
révision d0226552a1
Signature inconnue de Forgejo
ID de la clé GPG: 4AEE18F83AFDEB23
1 fichiers modifiés avec 6 ajouts et 6 suppressions

Voir le fichier

@ -761,19 +761,19 @@ func TestRand(t *testing.T) {
}{
{
TestPath: "g",
Expected: "/g/"
Expected: "/g/",
},
{
TestPath: "v",
Expected: "/v/"
Expected: "/v/",
},
{
TestPath: "my_theme",
Expected: "My Theme"
Expected: "My Theme",
},
{
TestPath: "tomorrow",
Expected: "Tomorrow"
Expected: "Tomorrow",
},
}
for _, test := range tests {
@ -802,12 +802,12 @@ func testFormatDate(t *testing.T) {
{
TestDate: time.Date(2017, 11, 1, 0, 0, 0, 0, UTC),
TestFullDate: false,
Expected: "Nov 1, 2017"
Expected: "Nov 1, 2017",
},
{
TestDate: time.Date(2017, 11, 1, 0, 0, 0, 0, UTC),
TestFullDate: true,
Expected: "11/1/2017, 0:00:00 AM UTC+0"
Expected: "11/1/2017, 0:00:00 AM UTC+0",
},
}
for _, test := range tests {