aboutsummaryrefslogblamecommitdiff
path: root/telegram/client_test.go
blob: 4c757e12bedbeffe9e75ea582a7a8dfd04db4d8d (plain) (tree)


















                                                                        
package telegram

import (
	"testing"
)

func TestLogInfo(t *testing.T) {
	tdlibConstant := stringToLogConstant(":info")
	if tdlibConstant != 3 {
		t.Errorf("Wrong TDlib constant for info")
	}
}

func TestLogInvalid(t *testing.T) {
	tdlibConstant := stringToLogConstant("ziz")
	if tdlibConstant != 0 {
		t.Errorf("Unknown strings should return fatal loglevel")
	}
}