read XSDTime w/o alloc

This commit is contained in:
Simon Martens
2025-03-26 11:02:24 +01:00
parent 0ff2e98c88
commit dd24aea0a3
4 changed files with 73 additions and 18 deletions

View File

@@ -20,7 +20,7 @@ var tests = []Test{
{"--12-31", XSDDate{Month: 12, Day: 31}, GMonthDay},
}
func TestParse(t *testing.T) {
func TestXSDTimeParse(t *testing.T) {
for _, test := range tests {
dt, err := New(test.Input)
if err != nil {
@@ -54,7 +54,7 @@ func TestParse(t *testing.T) {
}
}
func TestString(t *testing.T) {
func TestXSDTimeString(t *testing.T) {
for _, test := range tests {
dt, err := New(test.Input)
if err != nil {