From 3e5e3f4b1e6bc0a21302086ec98ab3736ebdd6cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Fri, 23 Aug 2024 11:43:52 +0800 Subject: [PATCH] optimize(pgSz): use explicit type `int` instaed of `xml.Attr` --- structdoc_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/structdoc_test.go b/structdoc_test.go index f1eb2e8..21a015a 100644 --- a/structdoc_test.go +++ b/structdoc_test.go @@ -64,7 +64,7 @@ func TestUnmarshalPlainStructure(t *testing.T) { } } case *SectPr: - if v.PgSz.W.Value != "11906" || v.PgSz.H.Value != "16838" { + if v.PgSz.W != 11906 || v.PgSz.H != 16838 { t.Fatalf("We were not able to parse sectPr") } }