Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestIssue11405 (0.18 sec)

  1. src/encoding/xml/xml_test.go

    	type Test struct {
    		Ns   string `xml:"xmlns,attr"`
    		Body string
    	}
    
    	s := &Test{Ns: "http://example.com/ns", Body: "hello world"}
    	return Marshal(s)
    }
    
    func TestIssue11405(t *testing.T) {
    	testCases := []string{
    		"<root>",
    		"<root><foo>",
    		"<root><foo></foo>",
    	}
    	for _, tc := range testCases {
    		d := NewDecoder(strings.NewReader(tc))
    		var err error
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 36.9K bytes
    - Viewed (0)
Back to top