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
2
2
3
3
import (
4
4
"encoding/json"
5
+ "math/bits"
5
6
"os"
6
7
"path/filepath"
7
8
"testing"
@@ -21,7 +22,7 @@ func TestParseGlobalEnums(t *testing.T) {
21
22
assert .NoError (t , err )
22
23
assert .Equal (t , string (expected ), string (b ))
23
24
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 )
25
26
assert .Equal (t , int32 (62 ), p .packages .packages [constsPath ].ConstTable ["maxBase" ].Value )
26
27
assert .Equal (t , 8 , p .packages .packages [constsPath ].ConstTable ["shlByLen" ].Value )
27
28
assert .Equal (t , 255 , p .packages .packages [constsPath ].ConstTable ["hexnum" ].Value )
You can’t perform that action at this time.
0 commit comments