2020-05-26 15:15:14 +02:00
|
|
|
package video
|
|
|
|
|
|
|
|
import "testing"
|
|
|
|
|
|
|
|
func TestTypes(t *testing.T) {
|
2020-12-12 17:20:31 +01:00
|
|
|
if val := Types[""]; val != TypeAvc {
|
|
|
|
t.Fatal("default type should be avc")
|
2020-05-26 15:15:14 +02:00
|
|
|
}
|
|
|
|
|
2020-12-12 17:20:31 +01:00
|
|
|
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")
|
2020-05-26 15:15:14 +02:00
|
|
|
}
|
|
|
|
}
|