From e2790d198465072c7d70cb0b44cb4e94560c0989dc92d52b11460e23dc3997f8 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Sun, 15 Dec 2024 19:24:59 +0300 Subject: [PATCH] Hexadecimal encoding is easier to read --- gyac/cmd/test-vector-anys/main.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/gyac/cmd/test-vector-anys/main.go b/gyac/cmd/test-vector-anys/main.go index ccb4e9d..03cfc9b 100644 --- a/gyac/cmd/test-vector-anys/main.go +++ b/gyac/cmd/test-vector-anys/main.go @@ -89,10 +89,7 @@ func main() { map[string]any{}, gyac.MakeBlob(123, []byte{}), uuid.Nil, - atom.Raw{ - T: atom.TAI64, - V: []byte("\x00\x00\x00\x00\x00\x00\x00\x00"), - }, + atom.Raw{T: atom.TAI64, V: mustHexDec("0000000000000000")}, }, "dates": []any{ time.Unix(1234567890, 0), @@ -100,7 +97,7 @@ func main() { time.Unix(1234567890, 456789), atom.Raw{ T: atom.TAI64NA, - V: []byte("\x40\x00\x00\x00\x49\x96\x02\xF4\x00\x06\xF8\x55\x07\x5B\xCD\x15"), + V: mustHexDec("40000000499602F40006F855075BCD15"), }, }, "floats": []any{ -- 2.50.0