mirror of
https://dev.narayana.im/narayana/telegabber.git
synced 2026-08-05 12:17:06 +00:00
19 lines
382 B
Go
19 lines
382 B
Go
package main
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestTdlibLogInfo(t *testing.T) {
|
|
tdlibConstant := stringToTdlibLogConstant(":info")
|
|
if tdlibConstant != 3 {
|
|
t.Errorf("Wrong TDlib constant for info")
|
|
}
|
|
}
|
|
|
|
func TestTdlibLogInvalid(t *testing.T) {
|
|
tdlibConstant := stringToTdlibLogConstant("ziz")
|
|
if tdlibConstant != 0 {
|
|
t.Errorf("Unknown strings should return fatal loglevel")
|
|
}
|
|
}
|