17 lines
413 B
Go
17 lines
413 B
Go
package cmppadapter
|
|
|
|
import "testing"
|
|
|
|
func TestNewClientUsesGocmpp(t *testing.T) {
|
|
client := NewClient(ClientConfig{Version: Version30})
|
|
if client.Raw() == nil {
|
|
t.Fatal("expected gocmpp client")
|
|
}
|
|
}
|
|
|
|
func TestProtocolVersionMapping(t *testing.T) {
|
|
if toProtocolType(Version20).String() == toProtocolType(Version30).String() {
|
|
t.Fatal("expected CMPP 2.0 and 3.0 to map to different protocol types")
|
|
}
|
|
}
|