Add omitted TestStructWrapped test for URIField.
This commit is contained in:
parent
f9b2a90864
commit
030c9c12ee
@ -5,6 +5,7 @@ import (
|
|||||||
"encoding/xml"
|
"encoding/xml"
|
||||||
"fmt"
|
"fmt"
|
||||||
"math"
|
"math"
|
||||||
|
"net/url"
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
@ -572,6 +573,10 @@ func TestStructWrapped(t *testing.T) {
|
|||||||
tod := TimeOfDay{12, 34, 56}
|
tod := TimeOfDay{12, 34, 56}
|
||||||
date := Date{2001, 2, 3}
|
date := Date{2001, 2, 3}
|
||||||
tzd := TZD{3600, true}
|
tzd := TZD{3600, true}
|
||||||
|
url, err := url.Parse("https://example.com/path?k=v")
|
||||||
|
if err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
original := &wrapper{
|
original := &wrapper{
|
||||||
UI1Field: 1,
|
UI1Field: 1,
|
||||||
UI2Field: 2,
|
UI2Field: 2,
|
||||||
@ -593,6 +598,7 @@ func TestStructWrapped(t *testing.T) {
|
|||||||
BooleanField: true,
|
BooleanField: true,
|
||||||
BinBase64Field: BinBase64{1, 2, 3, 4},
|
BinBase64Field: BinBase64{1, 2, 3, 4},
|
||||||
BinHexField: BinHex{1, 2, 3, 4},
|
BinHexField: BinHex{1, 2, 3, 4},
|
||||||
|
URIField: URI(*url),
|
||||||
}
|
}
|
||||||
|
|
||||||
marshalled, err := xml.Marshal(original)
|
marshalled, err := xml.Marshal(original)
|
||||||
|
Loading…
Reference in New Issue
Block a user