Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestCopyTokenStartElement (0.34 sec)

  1. src/encoding/xml/xml_test.go

    		t.Error("CopyToken(CharData) != CharData")
    	}
    	data[1] = 'o'
    	if reflect.DeepEqual(tok1, tok2) {
    		t.Error("CopyToken(CharData) uses same buffer.")
    	}
    }
    
    func TestCopyTokenStartElement(t *testing.T) {
    	elt := StartElement{Name{"", "hello"}, []Attr{{Name{"", "lang"}, "en"}}}
    	var tok1 Token = elt
    	tok2 := CopyToken(tok1)
    	if tok1.(StartElement).Attr[0].Value != "en" {
    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