Add first Test

This commit is contained in:
Jan Bader 2017-09-24 14:11:52 +02:00
parent f5d46e0837
commit 650d417031

11
media_test.go Normal file
View File

@ -0,0 +1,11 @@
package main
import "testing"
func Test(t *testing.T) {
m := newMediaElement("Misfits - S02E03 - EN FORCED")
result := "Misfits - S02E03 EN FORCED"
if m.Path() != result {
t.Error("Expected " + result + ", got " + m.Path())
}
}