Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
thehowl committed Dec 10, 2024
1 parent 388acd2 commit 825c49c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 0 additions & 1 deletion gnovm/cmd/gno/testdata/lint/bad_import.txtar
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,4 @@ module gno.land/p/test

-- stdout.golden --
-- stderr.golden --
bad_file.gno:3:8: could not import python (import not found: python) (code=4)
bad_file.gno:3:8: unknown import path python (code=2)
6 changes: 5 additions & 1 deletion gnovm/pkg/packages/imports_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,10 @@ func TestImports(t *testing.T) {
require.NoError(t, err)
imports, err := Imports(pkg, nil)
require.NoError(t, err)
importsStrings := make([]string, len(imports))
for idx, imp := range imports {
importsStrings[idx] = imp.PkgPath
}

require.Equal(t, expected, imports)
require.Equal(t, expected, importsStrings)
}

0 comments on commit 825c49c

Please sign in to comment.