xmpp_test.go
changeset 22 d6b7b4cbf50d
parent 9 4fe926b03827
child 24 fff79efe06f6
--- 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 := `<stream:stream xmlns="jabber:client"` +