17 lines
312 B
Go
17 lines
312 B
Go
package video
|
|
|
|
import "testing"
|
|
|
|
func TestTypes(t *testing.T) {
|
|
if val := Types[""]; val != TypeAvc {
|
|
t.Fatal("default type should be avc")
|
|
}
|
|
|
|
if val := Types["mp4"]; val != TypeMp4 {
|
|
t.Fatal("mp4 type should be mp4")
|
|
}
|
|
|
|
if val := Types["avc"]; val != TypeAvc {
|
|
t.Fatal("mp4 type should be avc")
|
|
}
|
|
}
|