structs_test.go
changeset 38 2839fece923e
parent 34 7b1f924c75e2
child 42 f6bb47ca12f2
--- a/structs_test.go	Sat Dec 31 10:11:01 2011 -0700
+++ b/structs_test.go	Sat Dec 31 11:39:23 2011 -0700
@@ -106,11 +106,11 @@
 	if st.XError() != nil {
 		t.Errorf("iq: error %v", st.XError())
 	}
-	if st.XChild() == nil {
+	if st.generic() == nil {
 		t.Errorf("iq: nil child")
 	}
-	assertEquals(t, "foo", st.XChild().XMLName.Local)
-	assertEquals(t, "text", st.XChild().Chardata)
+	assertEquals(t, "foo", st.generic().XMLName.Local)
+	assertEquals(t, "text", st.generic().Chardata)
 
 	str = `<message to="alice" from="bob"/>`
 	st, err = ParseStanza(str)
@@ -125,8 +125,8 @@
 	if st.XError() != nil {
 		t.Errorf("message: error %v", st.XError())
 	}
-	if st.XChild() != nil {
-		t.Errorf("message: child %v", st.XChild())
+	if st.generic() != nil {
+		t.Errorf("message: child %v", st.generic())
 	}
 
 	str = `<presence/>`