blob: 169ff004683acd51ed210d6f031acf427a7125e3 [file] [log] [blame]
package ident
import "testing"
// TestRequestEncode exercises the (simple) functionality of Reequest.encode.
func TestRequestEncode(t *testing.T) {
r := Request{
ClientPort: 123,
ServerPort: 234,
}
if want, got := "234,123\r\n", string(r.encode()); want != got {
t.Errorf("Wanted %q, got %q", want, got)
}
}