diff -r 8f6ae5cfc9b9 -r d6b7b4cbf50d xmpp_test.go --- a/xmpp_test.go Wed Dec 28 13:05:59 2011 -0700 +++ b/xmpp_test.go Wed Dec 28 13:14:46 2011 -0700 @@ -52,9 +52,9 @@ ch := make(chan interface{}) go readXml(r, ch) x := <- ch - ss, ok := x.(*Stream) + ss, ok := x.(*stream) if !ok { - t.Fatalf("not Stream: %v", reflect.TypeOf(x)) + t.Fatalf("not stream: %v", reflect.TypeOf(x)) } assertEquals(t, "foo.com", ss.To) assertEquals(t, "bar.org", ss.From) @@ -95,7 +95,7 @@ } func TestWriteStream(t *testing.T) { - ss := &Stream{To: "foo.org", From: "bar.com", Id: "42", Lang: + ss := &stream{To: "foo.org", From: "bar.com", Id: "42", Lang: "en", Version: "1.0"} str := testWrite(ss) exp := `