Skip to content

Commit

Permalink
fix: failing assert in enums test on 32bit
Browse files Browse the repository at this point in the history
  • Loading branch information
leso-kn committed Jul 30, 2023
1 parent c7c63fc commit 363025e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion enums_test.go
Expand Up @@ -2,6 +2,7 @@ package swag

import (
"encoding/json"
"math/bits"
"os"
"path/filepath"
"testing"
Expand All @@ -21,7 +22,7 @@ func TestParseGlobalEnums(t *testing.T) {
assert.NoError(t, err)
assert.Equal(t, string(expected), string(b))
constsPath := "github.com/swaggo/swag/testdata/enums/consts"
assert.Equal(t, 64, p.packages.packages[constsPath].ConstTable["uintSize"].Value)
assert.Equal(t, bits.UintSize, p.packages.packages[constsPath].ConstTable["uintSize"].Value)
assert.Equal(t, int32(62), p.packages.packages[constsPath].ConstTable["maxBase"].Value)
assert.Equal(t, 8, p.packages.packages[constsPath].ConstTable["shlByLen"].Value)
assert.Equal(t, 255, p.packages.packages[constsPath].ConstTable["hexnum"].Value)
Expand Down

0 comments on commit 363025e

Please sign in to comment.