Skip to content

Commit

Permalink
change make file a fixe other tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Villaquiranm committed Oct 23, 2024
1 parent 81e2d03 commit 53369df
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 6 deletions.
4 changes: 3 additions & 1 deletion examples/gno.land/r/demo/disperse/z_0_filetest.gno
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// PKGPATH: gno.land/r/demo/main

// SEND: 200ugnot

package main
Expand All @@ -10,7 +12,7 @@ import (

func main() {
disperseAddr := std.DerivePkgAddr("gno.land/r/demo/disperse")
mainaddr := std.DerivePkgAddr("main")
mainaddr := std.DerivePkgAddr("gno.land/r/demo/main")

std.TestSetOrigPkgAddr(disperseAddr)
std.TestSetOrigCaller(mainaddr)
Expand Down
4 changes: 3 additions & 1 deletion examples/gno.land/r/demo/disperse/z_1_filetest.gno
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// PKGPATH: gno.land/r/demo/main

// SEND: 300ugnot

package main
Expand All @@ -10,7 +12,7 @@ import (

func main() {
disperseAddr := std.DerivePkgAddr("gno.land/r/demo/disperse")
mainaddr := std.DerivePkgAddr("main")
mainaddr := std.DerivePkgAddr("gno.land/r/demo/main")

std.TestSetOrigPkgAddr(disperseAddr)
std.TestSetOrigCaller(mainaddr)
Expand Down
4 changes: 3 additions & 1 deletion examples/gno.land/r/demo/disperse/z_2_filetest.gno
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// PKGPATH: gno.land/r/demo/main

// SEND: 300ugnot

package main
Expand All @@ -10,7 +12,7 @@ import (

func main() {
disperseAddr := std.DerivePkgAddr("gno.land/r/demo/disperse")
mainaddr := std.DerivePkgAddr("main")
mainaddr := std.DerivePkgAddr("gno.land/r/demo/main")

std.TestSetOrigPkgAddr(disperseAddr)
std.TestSetOrigCaller(mainaddr)
Expand Down
4 changes: 3 additions & 1 deletion examples/gno.land/r/demo/disperse/z_3_filetest.gno
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// PKGPATH: gno.land/r/demo/main

// SEND: 300ugnot

package main
Expand All @@ -11,7 +13,7 @@ import (

func main() {
disperseAddr := std.DerivePkgAddr("gno.land/r/demo/disperse")
mainaddr := std.DerivePkgAddr("main")
mainaddr := std.DerivePkgAddr("gno.land/r/demo/main")
beneficiary1 := std.Address("g1dmt3sa5ucvecxuhf3j6ne5r0e3z4x7h6c03xc0")
beneficiary2 := std.Address("g1akeqsvhucjt8gf5yupyzjxsjd29wv8fayng37c")

Expand Down
4 changes: 3 additions & 1 deletion examples/gno.land/r/demo/disperse/z_4_filetest.gno
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// PKGPATH: gno.land/r/demo/main

// SEND: 300ugnot

package main
Expand All @@ -11,7 +13,7 @@ import (

func main() {
disperseAddr := std.DerivePkgAddr("gno.land/r/demo/disperse")
mainaddr := std.DerivePkgAddr("main")
mainaddr := std.DerivePkgAddr("gno.land/r/demo/main")
beneficiary1 := std.Address("g1dmt3sa5ucvecxuhf3j6ne5r0e3z4x7h6c03xc0")
beneficiary2 := std.Address("g1akeqsvhucjt8gf5yupyzjxsjd29wv8fayng37c")

Expand Down
2 changes: 1 addition & 1 deletion gnovm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ lint:

.PHONY: fmt
fmt:
go run ./cmd/gno fmt $(GNOFMT_FLAGS) ./stdlibs/... ./tests/files/extern/... ./tests/stdlibs/...
go run ./cmd/gno fmt $(GNOFMT_FLAGS) ./stdlibs/... ./tests/stdlibs/...
$(rundep) mvdan.cc/gofumpt $(GOFMT_FLAGS) .

.PHONY: imports
Expand Down
2 changes: 2 additions & 0 deletions gnovm/tests/files/extern/tata/tutu.gno
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package tutu

import "github.com/gnolang/gno/_test/baz"

func Quux() string {
return quux.Quux()
}
2 changes: 2 additions & 0 deletions gnovm/tests/files/extern/toto/titi.gno
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package titi

import "github.com/gnolang/gno/_test/bar"

func Quux() string {
return quux.Quux()
}

0 comments on commit 53369df

Please sign in to comment.