Add first Test
This commit is contained in:
1 parent
f5d46e0837
commit
650d417031
1 file changed
+11
@@ -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())
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in new issue
Block a user