File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ package swag
22
33import (
44 "encoding/json"
5+ "math/bits"
56 "os"
67 "path/filepath"
78 "testing"
@@ -21,7 +22,7 @@ func TestParseGlobalEnums(t *testing.T) {
2122 assert .NoError (t , err )
2223 assert .Equal (t , string (expected ), string (b ))
2324 constsPath := "github.com/swaggo/swag/testdata/enums/consts"
24- assert .Equal (t , 64 , p .packages .packages [constsPath ].ConstTable ["uintSize" ].Value )
25+ assert .Equal (t , bits . UintSize , p .packages .packages [constsPath ].ConstTable ["uintSize" ].Value )
2526 assert .Equal (t , int32 (62 ), p .packages .packages [constsPath ].ConstTable ["maxBase" ].Value )
2627 assert .Equal (t , 8 , p .packages .packages [constsPath ].ConstTable ["shlByLen" ].Value )
2728 assert .Equal (t , 255 , p .packages .packages [constsPath ].ConstTable ["hexnum" ].Value )
You can’t perform that action at this time.
0 commit comments