Add first Test
This commit is contained in:
parent
f5d46e0837
commit
650d417031
11
media_test.go
Normal file
11
media_test.go
Normal 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())
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user