diff --git a/.gitignore b/.gitignore index 7f13cc2a3ce..6532ec9fafc 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,4 @@ build/* *.tx *.log.* *.log +*.gno.gen.go \ No newline at end of file diff --git a/Makefile b/Makefile index 99a874787e2..75e3c0cec36 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ all: gnoland gnokey goscan logos -.PHONY: logos goscan gnoland gnokey gnofaucet logos reset test test1 test2 testrealm testrealm1 testrealm2 testpackages testpkgs +.PHONY: logos goscan gnoland gnokey gnofaucet logos reset reset: rm -rf testdir @@ -19,10 +19,13 @@ gnokey: echo "Building gnokey" go build -o build/gnokey ./cmd/gnokey -install_gnokey: gnokey +install_gnokey: echo "Installing gnokey" go install ./cmd/gnokey +install_gnodev: + go install ./cmd/gnodev + # The faucet (daemon) gnofaucet: echo "Building gnofaucet" @@ -42,45 +45,34 @@ logos: clean: rm -rf build -test: - echo "Running tests" - go test - go test tests/*.go -v -test.short --timeout 20m - -test1: - echo "Running tests" - go test - go test tests/*.go -v -test.short -run "TestFiles1" - -test2: - echo "Running tests" - go test - go test tests/*.go -v -test.short -run "TestFiles2" - -testrealm: - echo "Running tests" - go test - go test tests/*.go -v -run "TestFiles/^zrealm" - -testrealm1: - echo "Running tests" - go test - go test tests/*.go -v -run "TestFiles1/^zrealm" - -testrealm2: - echo "Running tests" - go test - go test tests/*.go -v -run "TestFiles2/^zrealm" - -testpackages: - echo "Running tests" - go test tests/*.go -v -run "TestPackages" - -testpkgs: +# Test suite +.PHONY: test test.go test.gno test.files1 test.files2 test.realm test.packages +test: test.gno test.go + @echo "Full test suite finished." + +test.gno: test.files1 test.files2 test.realm test.packages + go test tests/*.go -v -run "TestFileStr" + go test tests/*.go -v -run "TestSelectors" + +test.go: + go test . -v # -p 1 shows test failures as they come # maybe another way to do this? - go test ./pkgs/... -p 1 -count 1 + go test ./pkgs/... -v -p 1 + +test.files1: + go test tests/*.go -v -test.short -run "TestFiles1/" --timeout 20m + +test.files2: + go test tests/*.go -v -test.short -run "TestFiles2/" --timeout 20m + +test.realm: + go test tests/*.go -v -run "TestFiles/^zrealm" --timeout 20m + +test.packages: + go test tests/*.go -v -run "TestPackages" --timeout 20m +# Code gen stringer: stringer -type=Op diff --git a/cmd/gnodev/main.go b/cmd/gnodev/main.go new file mode 100644 index 00000000000..51ff68ee960 --- /dev/null +++ b/cmd/gnodev/main.go @@ -0,0 +1,150 @@ +package main + +import ( + "fmt" + "go/parser" + "go/token" + "io/fs" + "io/ioutil" + "os" + "path/filepath" + "strings" + + "github.com/gnolang/gno" + "github.com/gnolang/gno/pkgs/command" + "github.com/gnolang/gno/pkgs/errors" +) + +func main() { + cmd := command.NewStdCommand() + exec := os.Args[0] + args := os.Args[1:] + err := runMain(cmd, exec, args) + if err != nil { + cmd.ErrPrintfln("%s", err.Error()) + cmd.ErrPrintfln("%#v", err) + return // exit + } +} + +type AppItem = command.AppItem +type AppList = command.AppList + +var mainApps AppList = []AppItem{ + {precompileApp, "precompile", "precompile .gno to .go", DefaultPrecompileOptions}, +} + +func runMain(cmd *command.Command, exec string, args []string) error { + + // show help message. + if len(args) == 0 || args[0] == "help" || args[0] == "--help" { + cmd.Println("available subcommands:") + for _, appItem := range mainApps { + cmd.Printf(" %s - %s\n", appItem.Name, appItem.Desc) + } + return nil + } + + // switch on first argument. + for _, appItem := range mainApps { + if appItem.Name == args[0] { + err := cmd.Run(appItem.App, args[1:], appItem.Defaults) + return err // done + } + } + + // unknown app command! + return errors.New("unknown command " + args[0]) + +} + +//---------------------------------------- +// precompileApp + +type precompileOptions struct { + Verbose bool `flag:"verbose" help:"verbose"` +} + +var DefaultPrecompileOptions = precompileOptions{ + Verbose: false, +} + +func precompileApp(cmd *command.Command, args []string, iopts interface{}) error { + opts := iopts.(precompileOptions) + if len(args) < 1 { + cmd.ErrPrintfln("Usage: precompile [precompile flags] [packages]") + return errors.New("invalid args") + } + + verbose := opts.Verbose + for _, arg := range args { + info, err := os.Stat(arg) + if err != nil { + return fmt.Errorf("invalid package path: %w", err) + } + if !info.IsDir() { + filepath := arg + err = precompileFile(filepath, verbose) + if err != nil { + return fmt.Errorf("%s: failed to precompile: %w", filepath, err) + } + } else { + err = filepath.WalkDir(arg, func(filepath string, f fs.DirEntry, err error) error { + if err != nil { + return fmt.Errorf("%s: failed to walk dir: %w", arg, err) + } + + if !isGnoFile(f) { + return nil // skip + } + err = precompileFile(filepath, verbose) + if err != nil { + return fmt.Errorf("%s: failed to precompile: %w", filepath, err) + } + return nil + }) + if err != nil { + return err + } + } + } + + return nil +} + +func precompileFile(srcPath string, verbose bool) error { + if verbose { + fmt.Fprintln(os.Stderr, srcPath) + } + + // parse .gno. + source, err := ioutil.ReadFile(srcPath) + if err != nil { + return fmt.Errorf("failed to read: %w", err) + } + fset := token.NewFileSet() + f, err := parser.ParseFile(fset, srcPath, source, parser.ParseComments) + if err != nil { + return fmt.Errorf("failed to parse: %w", err) + } + + // preprocess. + transformed, err := gno.Precompile(fset, f) + if err != nil { + return fmt.Errorf("failed to precompile: %w", err) + } + + // write .go file. + targetPath := strings.TrimSuffix(srcPath, ".gno") + ".gno.gen.go" + err = ioutil.WriteFile(targetPath, []byte(transformed), 0644) + if err != nil { + return fmt.Errorf("failed to write .go file: %w", err) + } + + return nil +} + +func isGnoFile(f fs.DirEntry) bool { + name := f.Name() + return !strings.HasPrefix(name, ".") && strings.HasSuffix(name, ".gno") && !f.IsDir() +} diff --git a/examples/gno.land/p/avl/avl.go b/examples/gno.land/p/avl/avl.gno similarity index 100% rename from examples/gno.land/p/avl/avl.go rename to examples/gno.land/p/avl/avl.gno diff --git a/examples/gno.land/p/bank/types.go b/examples/gno.land/p/bank/types.gno similarity index 100% rename from examples/gno.land/p/bank/types.go rename to examples/gno.land/p/bank/types.gno diff --git a/examples/gno.land/p/dom/dom.go b/examples/gno.land/p/dom/dom.gno similarity index 100% rename from examples/gno.land/p/dom/dom.go rename to examples/gno.land/p/dom/dom.gno diff --git a/examples/gno.land/p/groups/groups.go b/examples/gno.land/p/groups/groups.gno similarity index 100% rename from examples/gno.land/p/groups/groups.go rename to examples/gno.land/p/groups/groups.gno diff --git a/examples/gno.land/p/groups/vote_set.go b/examples/gno.land/p/groups/vote_set.gno similarity index 100% rename from examples/gno.land/p/groups/vote_set.go rename to examples/gno.land/p/groups/vote_set.gno diff --git a/examples/gno.land/p/tests/tests.go b/examples/gno.land/p/tests/tests.gno similarity index 100% rename from examples/gno.land/p/tests/tests.go rename to examples/gno.land/p/tests/tests.gno diff --git a/examples/gno.land/p/testutils/crypto.go b/examples/gno.land/p/testutils/crypto.gno similarity index 100% rename from examples/gno.land/p/testutils/crypto.go rename to examples/gno.land/p/testutils/crypto.gno diff --git a/examples/gno.land/p/testutils/misc.go b/examples/gno.land/p/testutils/misc.gno similarity index 100% rename from examples/gno.land/p/testutils/misc.go rename to examples/gno.land/p/testutils/misc.gno diff --git a/examples/gno.land/r/banktest/banktest.go b/examples/gno.land/r/banktest/banktest.gno similarity index 100% rename from examples/gno.land/r/banktest/banktest.go rename to examples/gno.land/r/banktest/banktest.gno diff --git a/examples/gno.land/r/boards/boards.go b/examples/gno.land/r/boards/boards.gno similarity index 100% rename from examples/gno.land/r/boards/boards.go rename to examples/gno.land/r/boards/boards.gno diff --git a/examples/gno.land/r/nft/nft.go b/examples/gno.land/r/nft/nft.gno similarity index 100% rename from examples/gno.land/r/nft/nft.go rename to examples/gno.land/r/nft/nft.gno diff --git a/examples/gno.land/r/tests/interfaces.go b/examples/gno.land/r/tests/interfaces.gno similarity index 100% rename from examples/gno.land/r/tests/interfaces.go rename to examples/gno.land/r/tests/interfaces.gno diff --git a/examples/gno.land/r/tests/tests.go b/examples/gno.land/r/tests/tests.gno similarity index 100% rename from examples/gno.land/r/tests/tests.go rename to examples/gno.land/r/tests/tests.gno diff --git a/examples/gno.land/r/tests_foo/foo.go b/examples/gno.land/r/tests_foo/foo.gno similarity index 100% rename from examples/gno.land/r/tests_foo/foo.go rename to examples/gno.land/r/tests_foo/foo.gno diff --git a/examples/gno.land/r/users/users.go b/examples/gno.land/r/users/users.gno similarity index 100% rename from examples/gno.land/r/users/users.go rename to examples/gno.land/r/users/users.gno diff --git a/go.mod b/go.mod index 4079e45a323..ec694143fae 100644 --- a/go.mod +++ b/go.mod @@ -20,14 +20,16 @@ require ( github.com/libp2p/go-buffer-pool v0.0.2 github.com/mattn/go-runewidth v0.0.10 github.com/pelletier/go-toml v1.9.3 - github.com/stretchr/testify v1.6.1 + github.com/stretchr/testify v1.7.1 github.com/syndtr/goleveldb v1.0.0 github.com/tecbot/gorocksdb v0.0.0-20191217155057-f0fad39f321c go.etcd.io/bbolt v1.3.6 - golang.org/x/crypto v0.0.0-20200115085410-6d4e4cb37c7d + go.uber.org/multierr v1.8.0 + golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9 golang.org/x/mod v0.4.2 golang.org/x/net v0.0.0-20210726213435-c6fcb2dbf985 golang.org/x/term v0.0.0-20210615171337-6886f2dfbf5b + golang.org/x/tools v0.1.0 google.golang.org/protobuf v1.27.1 ) @@ -39,12 +41,16 @@ require ( github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db // indirect github.com/gorilla/securecookie v1.1.1 // indirect github.com/gorilla/sessions v1.2.1 // indirect + github.com/kr/text v0.2.0 // indirect github.com/lucasb-eyer/go-colorful v1.0.3 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect github.com/rivo/uniseg v0.1.0 // indirect + go.uber.org/atomic v1.7.0 // indirect golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1 // indirect golang.org/x/text v0.3.6 // indirect - gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c // indirect + gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect + gopkg.in/yaml.v2 v2.2.2 // indirect + gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect ) replace github.com/gdamore/tcell/v2 => github.com/gnolang/tcell/v2 v2.1.0 diff --git a/go.sum b/go.sum index 420e2fd549d..cbfb684e6c8 100644 --- a/go.sum +++ b/go.sum @@ -10,6 +10,7 @@ github.com/btcsuite/goleveldb v0.0.0-20160330041536-7834afc9e8cd/go.mod h1:F+uVa github.com/btcsuite/snappy-go v0.0.0-20151229074030-0bdef8d06723/go.mod h1:8woku9dyThutzjeg+3xrA5iCpBRH8XEEg3lh6TiUghc= github.com/btcsuite/websocket v0.0.0-20150119174127-31079b680792/go.mod h1:ghJtEyQwv5/p4Mg4C0fgbePVuGr935/5ddU9Z3TmDRY= github.com/btcsuite/winsvc v1.0.0/go.mod h1:jsenWakMcC0zFBFurPLEAyrnc/teJEM1O46fmI40EZs= +github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v0.0.0-20171005155431-ecdeabc65495/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= @@ -60,6 +61,12 @@ github.com/jmhodges/levigo v1.0.0 h1:q5EC36kV79HWeTBWsod3mG11EgStG3qArTKcvlksN1U github.com/jmhodges/levigo v1.0.0/go.mod h1:Q6Qx+uH3RAqyK4rFQroq9RL7mdkABMcfhEI+nNuzMJQ= github.com/jrick/logrotate v1.0.0/go.mod h1:LNinyqDIJnpAur+b8yyulnQw/wDuN1+BYKlTRt3OuAQ= github.com/kkdai/bstream v0.0.0-20161212061736-f391b8402d23/go.mod h1:J+Gs4SYgM6CZQHDETBtE9HaSEkGmuNXF86RwHhHUvq4= +github.com/kr/pretty v0.2.1 h1:Fmg33tUaq4/8ym9TJN1x7sLJnHVwhP33CNkpYV/7rwI= +github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= +github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= +github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= +github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= +github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/libp2p/go-buffer-pool v0.0.2 h1:QNK2iAFa8gjAe1SPz6mHSMuCcjs+X1wlHzeOSqcmlfs= github.com/libp2p/go-buffer-pool v0.0.2/go.mod h1:MvaB6xw5vOrDl8rYZGLFdKAuk/hRoRZd1Vi32+RXyFM= github.com/lucasb-eyer/go-colorful v1.0.3 h1:QIbQXiugsb+q10B+MI+7DI1oQLdmnep86tWFlaaUAac= @@ -80,34 +87,48 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN github.com/rivo/uniseg v0.1.0 h1:+2KBaVoUmb9XzDsrx/Ct0W/EYOSFf/nWTauy++DprtY= github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/testify v1.6.1 h1:hDPOHmpOpP40lSULcqw7IrRb/u7w6RpDC9399XyoNd0= +github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.7.1 h1:5TQK59W5E3v0r2duFAb7P95B6hEeOyEnHRa8MjYSMTY= +github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/syndtr/goleveldb v1.0.0 h1:fBdIW9lB4Iz0n9khmH8w27SJ3QEJ7+IgjPEwGSZiFdE= github.com/syndtr/goleveldb v1.0.0/go.mod h1:ZVVdQEZoIme9iO1Ch2Jdy24qqXrMMOU6lpPAyBWyWuQ= github.com/tecbot/gorocksdb v0.0.0-20191217155057-f0fad39f321c h1:g+WoO5jjkqGAzHWCjJB1zZfXPIAaDpzXIEJ0eS6B5Ok= github.com/tecbot/gorocksdb v0.0.0-20191217155057-f0fad39f321c/go.mod h1:ahpPrc7HpcfEWDQRZEmnXMzHY03mLDYMCxeDzy46i+8= +github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= go.etcd.io/bbolt v1.3.6 h1:/ecaJf0sk1l4l6V4awd65v2C3ILy7MSj+s/x1ADCIMU= go.etcd.io/bbolt v1.3.6/go.mod h1:qXsaaIqmgQH0T+OPdb99Bf+PKfBBQVAdyD6TY9G8XM4= +go.uber.org/atomic v1.7.0 h1:ADUqmZGgLDDfbSL9ZmPxKTybcoEYHgpYfELNoN+7hsw= +go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= +go.uber.org/multierr v1.8.0 h1:dg6GjLku4EH+249NNmoIciG9N/jURbDG+pFlTkhzIC8= +go.uber.org/multierr v1.8.0/go.mod h1:7EAYxJLBy9rStEaz58O2t4Uvip6FSURkq8/ppBp95ak= golang.org/x/crypto v0.0.0-20170930174604-9419663f5a44/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20200115085410-6d4e4cb37c7d h1:2+ZP7EfsZV7Vvmx3TIqSlSzATMkTAKqM14YGFPoSKjI= golang.org/x/crypto v0.0.0-20200115085410-6d4e4cb37c7d/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9 h1:psW17arqaxU48Z5kZ0CQnkZWQJsqcURM6tKiBApRjXI= +golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.2 h1:Gz96sIWK3OalVv/I/qNygP42zyoKp3xptRVCWRFEBvo= golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20210726213435-c6fcb2dbf985 h1:4CSI6oo7cOjJKajidEljs9h+uP0rRZBPPPhcCbj5mw8= golang.org/x/net v0.0.0-20210726213435-c6fcb2dbf985/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190626150813-e07cf5db2756/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200923182605-d9f96fdee20d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1 h1:SrN+KX8Art/Sf4HNj6Zcz06G7VEz+7w9tdXTPOZ7+l4= golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -115,24 +136,31 @@ golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9sn golang.org/x/term v0.0.0-20210615171337-6886f2dfbf5b h1:9zKuko04nR4gjZ4+DNjHqRlAJqbJETHwiNKDqTfOjfE= golang.org/x/term v0.0.0-20210615171337-6886f2dfbf5b/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6 h1:aRYxNxv6iGQlyVaZmk6ZgYEDa+Jg18DxebPSrd6bg1M= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.1.0 h1:po9/4sTYwZU9lPhi1tOrb4hCv3qrhiQ77LZfGa2OjwY= +golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE= +golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.27.1 h1:SnqbnDw1V7RiZcXPx5MEeqPv2s79L9i7BJUlG/+RurQ= google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= -gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= +gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= gopkg.in/fsnotify.v1 v1.4.7 h1:xOHLXZwVvI9hhs+cLKq5+I5onOuwQLhQwiu63xxlHs4= gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= -gopkg.in/yaml.v2 v2.2.1 h1:mUhvW9EsL+naU5Q3cakzfE91YhliOondGd6ZrsDBHQE= gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo= +gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw= +gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo= +gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/nodes.go b/nodes.go index c0093ffcb31..e570e3ae97e 100644 --- a/nodes.go +++ b/nodes.go @@ -1064,7 +1064,7 @@ type FileSet struct { // TODO replace with some more efficient method // that doesn't involve parsing the whole file. func PackageNameFromFileBody(body string) Name { - n := MustParseFile("dontcare.go", body) + n := MustParseFile("dontcare.gno", body) return n.PkgName } @@ -1085,12 +1085,12 @@ func ReadMemPackage(dir string, pkgPath string) *std.MemPackage { if err != nil { panic(err) } - if pkgName == "" && strings.HasSuffix(file.Name(), "_test.go") { + if pkgName == "" && strings.HasSuffix(file.Name(), "_test.gno") { pkgName = PackageNameFromFileBody(string(bz)) if strings.HasSuffix(string(pkgName), "_test") { pkgName = pkgName[:len(pkgName)-len("_test")] } - } else if pkgName == "" && strings.HasSuffix(file.Name(), ".go") { + } else if pkgName == "" && strings.HasSuffix(file.Name(), ".gno") { pkgName = PackageNameFromFileBody(string(bz)) } memPkg.Files = append(memPkg.Files, @@ -1108,14 +1108,14 @@ func ReadMemPackage(dir string, pkgPath string) *std.MemPackage { func ParseMemPackage(memPkg *std.MemPackage) (fset *FileSet) { fset = &FileSet{} for _, mfile := range memPkg.Files { - if !strings.HasSuffix(mfile.Name, ".go") { + if !strings.HasSuffix(mfile.Name, ".gno") { continue // skip spurious file. } n, err := ParseFile(mfile.Name, mfile.Body) if err != nil { panic(errors.Wrap(err, "parsing file "+mfile.Name)) } - if strings.HasSuffix(mfile.Name, "_test.go") { + if strings.HasSuffix(mfile.Name, "_test.gno") { // skip test file. } else if memPkg.Name == string(n.PkgName) { // add package file. @@ -1132,7 +1132,7 @@ func ParseMemPackageTests(memPkg *std.MemPackage) (tset, itset *FileSet) { tset = &FileSet{} itset = &FileSet{} for _, mfile := range memPkg.Files { - if !strings.HasSuffix(mfile.Name, ".go") { + if !strings.HasSuffix(mfile.Name, ".gno") { continue // skip this file. } n, err := ParseFile(mfile.Name, mfile.Body) @@ -1142,7 +1142,7 @@ func ParseMemPackageTests(memPkg *std.MemPackage) (tset, itset *FileSet) { if n == nil { panic("should not happen") } - if strings.HasSuffix(mfile.Name, "_test.go") { + if strings.HasSuffix(mfile.Name, "_test.gno") { // add test file. if memPkg.Name+"_test" == string(n.PkgName) { itset.AddFiles(n) diff --git a/pkgs/sdk/vm/keeper_test.go b/pkgs/sdk/vm/keeper_test.go index 456f42026ef..860614effac 100644 --- a/pkgs/sdk/vm/keeper_test.go +++ b/pkgs/sdk/vm/keeper_test.go @@ -25,7 +25,7 @@ func TestVMKeeperOrigSend1(t *testing.T) { // Create test package. files := []*std.MemFile{ - {"init.go", ` + {"init.gno", ` package test import "std" @@ -70,7 +70,7 @@ func TestVMKeeperOrigSend2(t *testing.T) { // Create test package. files := []*std.MemFile{ - {"init.go", ` + {"init.gno", ` package test import "std" @@ -116,7 +116,7 @@ func TestVMKeeperOrigSend3(t *testing.T) { // Create test package. files := []*std.MemFile{ - {"init.go", ` + {"init.gno", ` package test import "std" @@ -161,7 +161,7 @@ func TestVMKeeperRealmSend1(t *testing.T) { // Create test package. files := []*std.MemFile{ - {"init.go", ` + {"init.gno", ` package test import "std" @@ -205,7 +205,7 @@ func TestVMKeeperRealmSend2(t *testing.T) { // Create test package. files := []*std.MemFile{ - {"init.go", ` + {"init.gno", ` package test import "std" diff --git a/pkgs/sdk/vm/msgs.go b/pkgs/sdk/vm/msgs.go index 087c843e67c..376502bdb7d 100644 --- a/pkgs/sdk/vm/msgs.go +++ b/pkgs/sdk/vm/msgs.go @@ -26,7 +26,7 @@ var _ std.Msg = MsgAddPackage{} func NewMsgAddPackage(creator crypto.Address, pkgPath string, files []*std.MemFile) MsgAddPackage { var pkgName string for _, file := range files { - if strings.HasSuffix(file.Name, ".go") { + if strings.HasSuffix(file.Name, ".gno") { pkgName = string(gno.PackageNameFromFileBody(file.Body)) break } diff --git a/precompile.go b/precompile.go new file mode 100644 index 00000000000..14a2f598e47 --- /dev/null +++ b/precompile.go @@ -0,0 +1,129 @@ +package gno + +import ( + "bytes" + "fmt" + "go/ast" + "go/format" + "go/token" + "strings" + + "go.uber.org/multierr" + "golang.org/x/tools/go/ast/astutil" +) + +const ( + gnoRealmPkgsPrefixBefore = "gno.land/r/" + gnoRealmPkgsPrefixAfter = "github.com/gnolang/gno/examples/gno.land/r/" + gnoPackagePrefixBefore = "gno.land/p/" + gnoPackagePrefixAfter = "github.com/gnolang/gno/examples/gno.land/p/" + gnoStdPkgBefore = "std" + gnoStdPkgAfter = "github.com/gnolang/gno/stdlibs/stdshim" +) + +var stdlibWhitelist = []string{ + "regexp", + "std", + "strconv", + "strings", + "maths", +} + +func Precompile(fset *token.FileSet, f *ast.File) (string, error) { + var out bytes.Buffer + + transformed, err := precompileAST(fset, f) + if err != nil { + return "", fmt.Errorf("precompile ast: %w", err) + } + + _, err = out.WriteString("// Code generated by github.com/gnolang/gno. DO NOT EDIT.\n\n//go:build gno\n// +build gno\n\n") + if err != nil { + return "", fmt.Errorf("write to buffer: %w", err) + } + err = format.Node(&out, fset, transformed) + return out.String(), nil +} +func precompileAST(fset *token.FileSet, f *ast.File) (ast.Node, error) { + var errs error + + imports := astutil.Imports(fset, f) + + // import whitelist + for _, paragraph := range imports { + for _, importSpec := range paragraph { + importPath := strings.TrimPrefix(strings.TrimSuffix(importSpec.Path.Value, `"`), `"`) + + if strings.HasPrefix(importPath, gnoRealmPkgsPrefixBefore) { + continue + } + + if strings.HasPrefix(importPath, gnoPackagePrefixBefore) { + continue + } + + valid := false + for _, whitelisted := range stdlibWhitelist { + if importPath == whitelisted { + valid = true + continue + } + } + if valid { + continue + } + + errs = multierr.Append(errs, fmt.Errorf("import %q is not in the whitelist", importPath)) + } + } + + // rewrite imports + for _, paragraph := range imports { + for _, importSpec := range paragraph { + importPath := strings.TrimPrefix(strings.TrimSuffix(importSpec.Path.Value, `"`), `"`) + + // std package + if importPath == gnoStdPkgBefore { + if !astutil.RewriteImport(fset, f, gnoStdPkgBefore, gnoStdPkgAfter) { + errs = multierr.Append(errs, fmt.Errorf("failed to replace the %q package with %q", gnoStdPkgBefore, gnoStdPkgAfter)) + } + } + + // p/pkg packages + if strings.HasPrefix(importPath, gnoPackagePrefixBefore) { + target := gnoPackagePrefixAfter + strings.TrimPrefix(importPath, gnoPackagePrefixBefore) + + if !astutil.RewriteImport(fset, f, importPath, target) { + errs = multierr.Append(errs, fmt.Errorf("failed to replace the %q package with %q", importPath, target)) + } + + } + + // r/realm packages + if strings.HasPrefix(importPath, gnoRealmPkgsPrefixBefore) { + target := gnoRealmPkgsPrefixAfter + strings.TrimPrefix(importPath, gnoRealmPkgsPrefixBefore) + + if !astutil.RewriteImport(fset, f, importPath, target) { + errs = multierr.Append(errs, fmt.Errorf("failed to replace the %q package with %q", importPath, target)) + } + + } + } + } + + // custom handler + node := astutil.Apply(f, + // pre + func(c *astutil.Cursor) bool { + // do things here + return true + }, + // post + func(c *astutil.Cursor) bool { + // and here + return true + }, + ) + + return node, errs +} diff --git a/precompile_test.go b/precompile_test.go new file mode 100644 index 00000000000..d2abb2dd466 --- /dev/null +++ b/precompile_test.go @@ -0,0 +1,90 @@ +package gno + +import ( + "bytes" + "errors" + "go/format" + "go/parser" + "go/token" + "testing" + + "github.com/stretchr/testify/assert" +) + +func TestPrecompile(t *testing.T) { + var cases = []struct { + name string + source string + expectedOutput string + expectedPreprocessorError error + }{ + { + name: "hello", + source: "package foo\nfunc hello() string { return \"world\"}", + expectedOutput: "package foo\nfunc hello() string { return \"world\"}", + }, { + name: "use-std", + source: "package foo\nimport \"std\"\nfunc hello() string { _ = std.Foo\nreturn \"world\"}", + expectedOutput: "package foo\nimport \"github.com/gnolang/gno/stdlibs/stdshim\"\nfunc hello() string { _ = std.Foo\nreturn \"world\"}", + }, { + name: "use-realm", + source: "package foo\nimport \"gno.land/r/users\"\nfunc foo() { _ = users.Register}", + expectedOutput: "package foo\nimport \"github.com/gnolang/gno/examples/gno.land/r/users\"\nfunc foo() { _ = users.Register}", + }, { + name: "use-avl", + source: "package foo\nimport \"gno.land/p/avl\"\nfunc foo() { _ = avl.Tree}", + expectedOutput: "package foo\nimport \"github.com/gnolang/gno/examples/gno.land/p/avl\"\nfunc foo() { _ = avl.Tree}", + }, { + name: "use-named-std", + source: "package foo\nimport bar \"std\"\nfunc hello() string { _ = bar.Foo\nreturn \"world\"}", + expectedOutput: "package foo\nimport bar \"github.com/gnolang/gno/stdlibs/stdshim\"\nfunc hello() string { _ = bar.Foo\nreturn \"world\"}", + }, { + name: "blacklisted-package", + source: "package foo\nimport \"reflect\"\nfunc foo() { _ = reflect.ValueOf}", + expectedPreprocessorError: errors.New(`import "reflect" is not in the whitelist`), + }, { + name: "whitelisted-package", + source: "package foo\nimport \"regexp\"\nfunc foo() { _ = regexp.MatchString}", + expectedOutput: "package foo\nimport \"regexp\"\nfunc foo() { _ = regexp.MatchString}", + }, + // multiple files + // syntax error + // unknown realm? + // blacklist + // etc + } + for _, c := range cases { + c := c // scopelint + t.Run(c.name, func(t *testing.T) { + // parse gno + fset := token.NewFileSet() + f, err := parser.ParseFile(fset, "foo.go", c.source, parser.ParseComments) + assert.NoError(t, err) + + // call preprocessor + transformed, err := precompileAST(fset, f) + if c.expectedPreprocessorError == nil { + assert.NoError(t, err) + } else { + assert.Equal(t, err, c.expectedPreprocessorError) + } + + // generate go + var buf bytes.Buffer + err = format.Node(&buf, fset, transformed) + assert.NoError(t, err) + got := buf.Bytes() + + // check output + if c.expectedOutput != "" { + expect, err := format.Source([]byte(c.expectedOutput)) + if !bytes.Equal(expect, got) { + t.Logf("got:\n%s", got) + t.Logf("expect:\n%s", expect) + t.Fatal("mismatch") + } + assert.NoError(t, err) + } + }) + } +} diff --git a/stdlibs/bufio/bufio.go b/stdlibs/bufio/bufio.gno similarity index 100% rename from stdlibs/bufio/bufio.go rename to stdlibs/bufio/bufio.gno diff --git a/stdlibs/bufio/example_test.go b/stdlibs/bufio/example_test.gno similarity index 100% rename from stdlibs/bufio/example_test.go rename to stdlibs/bufio/example_test.gno diff --git a/stdlibs/bufio/export_test.go b/stdlibs/bufio/export_test.gno similarity index 100% rename from stdlibs/bufio/export_test.go rename to stdlibs/bufio/export_test.gno diff --git a/stdlibs/bufio/scan.go b/stdlibs/bufio/scan.gno similarity index 100% rename from stdlibs/bufio/scan.go rename to stdlibs/bufio/scan.gno diff --git a/stdlibs/bufio/scan_test.go b/stdlibs/bufio/scan_test.gno similarity index 100% rename from stdlibs/bufio/scan_test.go rename to stdlibs/bufio/scan_test.gno diff --git a/stdlibs/bytes/boundary_test.go b/stdlibs/bytes/boundary_test.gno similarity index 100% rename from stdlibs/bytes/boundary_test.go rename to stdlibs/bytes/boundary_test.gno diff --git a/stdlibs/bytes/buffer.go b/stdlibs/bytes/buffer.gno similarity index 100% rename from stdlibs/bytes/buffer.go rename to stdlibs/bytes/buffer.gno diff --git a/stdlibs/bytes/buffer_test.go b/stdlibs/bytes/buffer_test.gno similarity index 100% rename from stdlibs/bytes/buffer_test.go rename to stdlibs/bytes/buffer_test.gno diff --git a/stdlibs/bytes/bytes.go b/stdlibs/bytes/bytes.gno similarity index 100% rename from stdlibs/bytes/bytes.go rename to stdlibs/bytes/bytes.gno diff --git a/stdlibs/bytes/bytes_test.go b/stdlibs/bytes/bytes_test.gno similarity index 100% rename from stdlibs/bytes/bytes_test.go rename to stdlibs/bytes/bytes_test.gno diff --git a/stdlibs/bytes/compare_test.go b/stdlibs/bytes/compare_test.gno similarity index 100% rename from stdlibs/bytes/compare_test.go rename to stdlibs/bytes/compare_test.gno diff --git a/stdlibs/bytes/example_test.go b/stdlibs/bytes/example_test.gno similarity index 100% rename from stdlibs/bytes/example_test.go rename to stdlibs/bytes/example_test.gno diff --git a/stdlibs/bytes/export_test.go b/stdlibs/bytes/export_test.gno similarity index 100% rename from stdlibs/bytes/export_test.go rename to stdlibs/bytes/export_test.gno diff --git a/stdlibs/bytes/reader.go b/stdlibs/bytes/reader.gno similarity index 100% rename from stdlibs/bytes/reader.go rename to stdlibs/bytes/reader.gno diff --git a/stdlibs/bytes/reader_test.go b/stdlibs/bytes/reader_test.gno similarity index 100% rename from stdlibs/bytes/reader_test.go rename to stdlibs/bytes/reader_test.gno diff --git a/stdlibs/crypto/chacha20/chacha/chacha.go b/stdlibs/crypto/chacha20/chacha/chacha.gno similarity index 100% rename from stdlibs/crypto/chacha20/chacha/chacha.go rename to stdlibs/crypto/chacha20/chacha/chacha.gno diff --git a/stdlibs/crypto/chacha20/chacha/chacha_generic.go b/stdlibs/crypto/chacha20/chacha/chacha_generic.gno similarity index 99% rename from stdlibs/crypto/chacha20/chacha/chacha_generic.go rename to stdlibs/crypto/chacha20/chacha/chacha_generic.gno index b2018074d70..8832d5bce4d 100644 --- a/stdlibs/crypto/chacha20/chacha/chacha_generic.go +++ b/stdlibs/crypto/chacha20/chacha/chacha_generic.gno @@ -317,4 +317,3 @@ func hChaCha20Generic(out *[32]byte, nonce *[16]byte, key *[32]byte) { binary.LittleEndian.PutUint32(out[24:], v14) binary.LittleEndian.PutUint32(out[28:], v15) } - diff --git a/stdlibs/crypto/chacha20/chacha/chacha_ref.go b/stdlibs/crypto/chacha20/chacha/chacha_ref.gno similarity index 100% rename from stdlibs/crypto/chacha20/chacha/chacha_ref.go rename to stdlibs/crypto/chacha20/chacha/chacha_ref.gno diff --git a/stdlibs/crypto/chacha20/chacha/chacha_test.go b/stdlibs/crypto/chacha20/chacha/chacha_test.gno similarity index 100% rename from stdlibs/crypto/chacha20/chacha/chacha_test.go rename to stdlibs/crypto/chacha20/chacha/chacha_test.gno diff --git a/stdlibs/crypto/chacha20/chacha20.go b/stdlibs/crypto/chacha20/chacha20.gno similarity index 100% rename from stdlibs/crypto/chacha20/chacha20.go rename to stdlibs/crypto/chacha20/chacha20.gno diff --git a/stdlibs/crypto/chacha20/chacha20_test.go b/stdlibs/crypto/chacha20/chacha20_test.gno similarity index 100% rename from stdlibs/crypto/chacha20/chacha20_test.go rename to stdlibs/crypto/chacha20/chacha20_test.gno diff --git a/stdlibs/crypto/chacha20/rand/rand.go b/stdlibs/crypto/chacha20/rand/rand.gno similarity index 100% rename from stdlibs/crypto/chacha20/rand/rand.go rename to stdlibs/crypto/chacha20/rand/rand.gno diff --git a/stdlibs/crypto/cipher/cipher.go b/stdlibs/crypto/cipher/cipher.gno similarity index 100% rename from stdlibs/crypto/cipher/cipher.go rename to stdlibs/crypto/cipher/cipher.gno diff --git a/stdlibs/encoding/base64/base64.go b/stdlibs/encoding/base64/base64.gno similarity index 100% rename from stdlibs/encoding/base64/base64.go rename to stdlibs/encoding/base64/base64.gno diff --git a/stdlibs/encoding/base64/base64_test.go b/stdlibs/encoding/base64/base64_test.gno similarity index 100% rename from stdlibs/encoding/base64/base64_test.go rename to stdlibs/encoding/base64/base64_test.gno diff --git a/stdlibs/encoding/hex/hex.go b/stdlibs/encoding/hex/hex.gno similarity index 100% rename from stdlibs/encoding/hex/hex.go rename to stdlibs/encoding/hex/hex.gno diff --git a/stdlibs/encoding/hex/hex_test.go b/stdlibs/encoding/hex/hex_test.gno similarity index 100% rename from stdlibs/encoding/hex/hex_test.go rename to stdlibs/encoding/hex/hex_test.gno diff --git a/stdlibs/errors/errors.go b/stdlibs/errors/errors.gno similarity index 99% rename from stdlibs/errors/errors.go rename to stdlibs/errors/errors.gno index cd6c450b3b3..f2fabacd4e9 100644 --- a/stdlibs/errors/errors.go +++ b/stdlibs/errors/errors.gno @@ -67,4 +67,3 @@ type errorString struct { func (e *errorString) Error() string { return e.s } - diff --git a/stdlibs/errors/errors_test.go b/stdlibs/errors/errors_test.gno similarity index 100% rename from stdlibs/errors/errors_test.go rename to stdlibs/errors/errors_test.gno diff --git a/stdlibs/errors/example_test.go b/stdlibs/errors/example_test.gno similarity index 100% rename from stdlibs/errors/example_test.go rename to stdlibs/errors/example_test.gno diff --git a/stdlibs/internal/bytealg/bytealg.go b/stdlibs/internal/bytealg/bytealg.gno similarity index 100% rename from stdlibs/internal/bytealg/bytealg.go rename to stdlibs/internal/bytealg/bytealg.gno diff --git a/stdlibs/internal/bytealg/compare_generic.go b/stdlibs/internal/bytealg/compare_generic.gno similarity index 99% rename from stdlibs/internal/bytealg/compare_generic.go rename to stdlibs/internal/bytealg/compare_generic.gno index 075e5362658..089deb2c93a 100644 --- a/stdlibs/internal/bytealg/compare_generic.go +++ b/stdlibs/internal/bytealg/compare_generic.gno @@ -59,4 +59,3 @@ func runtime_cmpstring(a, b string) int { } return 0 } - diff --git a/stdlibs/internal/bytealg/count_generic.go b/stdlibs/internal/bytealg/count_generic.gno similarity index 99% rename from stdlibs/internal/bytealg/count_generic.go rename to stdlibs/internal/bytealg/count_generic.gno index c0a42fd0fc7..1891d29b24c 100644 --- a/stdlibs/internal/bytealg/count_generic.go +++ b/stdlibs/internal/bytealg/count_generic.gno @@ -26,4 +26,3 @@ func CountString(s string, c byte) int { } return n } - diff --git a/stdlibs/internal/bytealg/equal_generic.go b/stdlibs/internal/bytealg/equal_generic.gno similarity index 100% rename from stdlibs/internal/bytealg/equal_generic.go rename to stdlibs/internal/bytealg/equal_generic.gno diff --git a/stdlibs/internal/bytealg/index_generic.go b/stdlibs/internal/bytealg/index_generic.gno similarity index 99% rename from stdlibs/internal/bytealg/index_generic.go rename to stdlibs/internal/bytealg/index_generic.gno index 362e6fbdfb8..0a6eb90d2d9 100644 --- a/stdlibs/internal/bytealg/index_generic.go +++ b/stdlibs/internal/bytealg/index_generic.gno @@ -28,4 +28,3 @@ func IndexString(a, b string) int { func Cutover(n int) int { panic("unimplemented") } - diff --git a/stdlibs/internal/bytealg/indexbyte_generic.go b/stdlibs/internal/bytealg/indexbyte_generic.gno similarity index 99% rename from stdlibs/internal/bytealg/indexbyte_generic.go rename to stdlibs/internal/bytealg/indexbyte_generic.gno index 048fdab24d9..6ef639fafdc 100644 --- a/stdlibs/internal/bytealg/indexbyte_generic.go +++ b/stdlibs/internal/bytealg/indexbyte_generic.gno @@ -24,4 +24,3 @@ func IndexByteString(s string, c byte) int { } return -1 } - diff --git a/stdlibs/io/example_test.go b/stdlibs/io/example_test.gno similarity index 100% rename from stdlibs/io/example_test.go rename to stdlibs/io/example_test.gno diff --git a/stdlibs/io/export_test.go b/stdlibs/io/export_test.gno similarity index 100% rename from stdlibs/io/export_test.go rename to stdlibs/io/export_test.gno diff --git a/stdlibs/io/io.go b/stdlibs/io/io.gno similarity index 100% rename from stdlibs/io/io.go rename to stdlibs/io/io.gno diff --git a/stdlibs/io/io_test.go b/stdlibs/io/io_test.gno similarity index 100% rename from stdlibs/io/io_test.go rename to stdlibs/io/io_test.gno diff --git a/stdlibs/io/ioutil/ioutil.go b/stdlibs/io/ioutil/ioutil.gno similarity index 100% rename from stdlibs/io/ioutil/ioutil.go rename to stdlibs/io/ioutil/ioutil.gno diff --git a/stdlibs/io/multi.go b/stdlibs/io/multi.gno similarity index 100% rename from stdlibs/io/multi.go rename to stdlibs/io/multi.gno diff --git a/stdlibs/io/multi_test.go b/stdlibs/io/multi_test.gno similarity index 100% rename from stdlibs/io/multi_test.go rename to stdlibs/io/multi_test.gno diff --git a/stdlibs/math/const.go b/stdlibs/math/const.gno similarity index 100% rename from stdlibs/math/const.go rename to stdlibs/math/const.gno diff --git a/stdlibs/maths/maths.go b/stdlibs/maths/maths.gno similarity index 100% rename from stdlibs/maths/maths.go rename to stdlibs/maths/maths.gno diff --git a/stdlibs/maths/overflow.go b/stdlibs/maths/overflow.gno similarity index 100% rename from stdlibs/maths/overflow.go rename to stdlibs/maths/overflow.gno diff --git a/stdlibs/maths/rat.go b/stdlibs/maths/rat.gno similarity index 100% rename from stdlibs/maths/rat.go rename to stdlibs/maths/rat.gno diff --git a/stdlibs/regexp/all_test.go b/stdlibs/regexp/all_test.gno similarity index 100% rename from stdlibs/regexp/all_test.go rename to stdlibs/regexp/all_test.gno diff --git a/stdlibs/regexp/backtrack.go b/stdlibs/regexp/backtrack.gno similarity index 100% rename from stdlibs/regexp/backtrack.go rename to stdlibs/regexp/backtrack.gno diff --git a/stdlibs/regexp/example_test.go b/stdlibs/regexp/example_test.gno similarity index 100% rename from stdlibs/regexp/example_test.go rename to stdlibs/regexp/example_test.gno diff --git a/stdlibs/regexp/exec.go b/stdlibs/regexp/exec.gno similarity index 100% rename from stdlibs/regexp/exec.go rename to stdlibs/regexp/exec.gno diff --git a/stdlibs/regexp/exec_test.go b/stdlibs/regexp/exec_test.gno similarity index 100% rename from stdlibs/regexp/exec_test.go rename to stdlibs/regexp/exec_test.gno diff --git a/stdlibs/regexp/find_test.go b/stdlibs/regexp/find_test.gno similarity index 100% rename from stdlibs/regexp/find_test.go rename to stdlibs/regexp/find_test.gno diff --git a/stdlibs/regexp/onepass.go b/stdlibs/regexp/onepass.gno similarity index 100% rename from stdlibs/regexp/onepass.go rename to stdlibs/regexp/onepass.gno diff --git a/stdlibs/regexp/onepass_test.go b/stdlibs/regexp/onepass_test.gno similarity index 100% rename from stdlibs/regexp/onepass_test.go rename to stdlibs/regexp/onepass_test.gno diff --git a/stdlibs/regexp/regexp.go b/stdlibs/regexp/regexp.gno similarity index 100% rename from stdlibs/regexp/regexp.go rename to stdlibs/regexp/regexp.gno diff --git a/stdlibs/regexp/syntax/compile.go b/stdlibs/regexp/syntax/compile.gno similarity index 100% rename from stdlibs/regexp/syntax/compile.go rename to stdlibs/regexp/syntax/compile.gno diff --git a/stdlibs/regexp/syntax/doc.go b/stdlibs/regexp/syntax/doc.gno similarity index 100% rename from stdlibs/regexp/syntax/doc.go rename to stdlibs/regexp/syntax/doc.gno diff --git a/stdlibs/regexp/syntax/op_string.go b/stdlibs/regexp/syntax/op_string.gno similarity index 100% rename from stdlibs/regexp/syntax/op_string.go rename to stdlibs/regexp/syntax/op_string.gno diff --git a/stdlibs/regexp/syntax/parse.go b/stdlibs/regexp/syntax/parse.gno similarity index 100% rename from stdlibs/regexp/syntax/parse.go rename to stdlibs/regexp/syntax/parse.gno diff --git a/stdlibs/regexp/syntax/parse_test.go b/stdlibs/regexp/syntax/parse_test.gno similarity index 100% rename from stdlibs/regexp/syntax/parse_test.go rename to stdlibs/regexp/syntax/parse_test.gno diff --git a/stdlibs/regexp/syntax/perl_groups.go b/stdlibs/regexp/syntax/perl_groups.gno similarity index 100% rename from stdlibs/regexp/syntax/perl_groups.go rename to stdlibs/regexp/syntax/perl_groups.gno diff --git a/stdlibs/regexp/syntax/prog.go b/stdlibs/regexp/syntax/prog.gno similarity index 100% rename from stdlibs/regexp/syntax/prog.go rename to stdlibs/regexp/syntax/prog.gno diff --git a/stdlibs/regexp/syntax/prog_test.go b/stdlibs/regexp/syntax/prog_test.gno similarity index 100% rename from stdlibs/regexp/syntax/prog_test.go rename to stdlibs/regexp/syntax/prog_test.gno diff --git a/stdlibs/regexp/syntax/regexp.go b/stdlibs/regexp/syntax/regexp.gno similarity index 100% rename from stdlibs/regexp/syntax/regexp.go rename to stdlibs/regexp/syntax/regexp.gno diff --git a/stdlibs/regexp/syntax/simplify.go b/stdlibs/regexp/syntax/simplify.gno similarity index 100% rename from stdlibs/regexp/syntax/simplify.go rename to stdlibs/regexp/syntax/simplify.gno diff --git a/stdlibs/regexp/syntax/simplify_test.go b/stdlibs/regexp/syntax/simplify_test.gno similarity index 100% rename from stdlibs/regexp/syntax/simplify_test.go rename to stdlibs/regexp/syntax/simplify_test.gno diff --git a/stdlibs/sort/search.go b/stdlibs/sort/search.gno similarity index 100% rename from stdlibs/sort/search.go rename to stdlibs/sort/search.gno diff --git a/stdlibs/sort/search_test.go b/stdlibs/sort/search_test.gno similarity index 100% rename from stdlibs/sort/search_test.go rename to stdlibs/sort/search_test.gno diff --git a/stdlibs/sort/sort.go b/stdlibs/sort/sort.gno similarity index 100% rename from stdlibs/sort/sort.go rename to stdlibs/sort/sort.gno diff --git a/stdlibs/sort/sort_test.go b/stdlibs/sort/sort_test.gno similarity index 100% rename from stdlibs/sort/sort_test.go rename to stdlibs/sort/sort_test.gno diff --git a/stdlibs/std/addr_set.go b/stdlibs/std/addr_set.gno similarity index 100% rename from stdlibs/std/addr_set.go rename to stdlibs/std/addr_set.gno diff --git a/stdlibs/std/banker.go b/stdlibs/std/banker.gno similarity index 100% rename from stdlibs/std/banker.go rename to stdlibs/std/banker.gno diff --git a/stdlibs/std/coins.go b/stdlibs/std/coins.gno similarity index 100% rename from stdlibs/std/coins.go rename to stdlibs/std/coins.gno diff --git a/stdlibs/std/context.go b/stdlibs/std/context.gno similarity index 100% rename from stdlibs/std/context.go rename to stdlibs/std/context.gno diff --git a/stdlibs/std/crypto.go b/stdlibs/std/crypto.gno similarity index 100% rename from stdlibs/std/crypto.go rename to stdlibs/std/crypto.gno diff --git a/stdlibs/std/time.go b/stdlibs/std/time.gno similarity index 100% rename from stdlibs/std/time.go rename to stdlibs/std/time.gno diff --git a/stdlibs/strconv/strconv.go b/stdlibs/strconv/strconv.gno similarity index 100% rename from stdlibs/strconv/strconv.go rename to stdlibs/strconv/strconv.gno diff --git a/stdlibs/strings/builder.go b/stdlibs/strings/builder.gno similarity index 100% rename from stdlibs/strings/builder.go rename to stdlibs/strings/builder.gno diff --git a/stdlibs/strings/builder_test.go b/stdlibs/strings/builder_test.gno similarity index 100% rename from stdlibs/strings/builder_test.go rename to stdlibs/strings/builder_test.gno diff --git a/stdlibs/strings/compare.go b/stdlibs/strings/compare.gno similarity index 100% rename from stdlibs/strings/compare.go rename to stdlibs/strings/compare.gno diff --git a/stdlibs/strings/example_test.go b/stdlibs/strings/example_test.gno similarity index 100% rename from stdlibs/strings/example_test.go rename to stdlibs/strings/example_test.gno diff --git a/stdlibs/strings/export_test.go b/stdlibs/strings/export_test.gno similarity index 100% rename from stdlibs/strings/export_test.go rename to stdlibs/strings/export_test.gno diff --git a/stdlibs/strings/reader.go b/stdlibs/strings/reader.gno similarity index 100% rename from stdlibs/strings/reader.go rename to stdlibs/strings/reader.gno diff --git a/stdlibs/strings/reader_test.go b/stdlibs/strings/reader_test.gno similarity index 100% rename from stdlibs/strings/reader_test.go rename to stdlibs/strings/reader_test.gno diff --git a/stdlibs/strings/search.go b/stdlibs/strings/search.gno similarity index 100% rename from stdlibs/strings/search.go rename to stdlibs/strings/search.gno diff --git a/stdlibs/strings/strings.go b/stdlibs/strings/strings.gno similarity index 100% rename from stdlibs/strings/strings.go rename to stdlibs/strings/strings.gno diff --git a/stdlibs/testing/testing.go b/stdlibs/testing/testing.gno similarity index 100% rename from stdlibs/testing/testing.go rename to stdlibs/testing/testing.gno diff --git a/stdlibs/unicode/casetables.go b/stdlibs/unicode/casetables.gno similarity index 100% rename from stdlibs/unicode/casetables.go rename to stdlibs/unicode/casetables.gno diff --git a/stdlibs/unicode/digit.go b/stdlibs/unicode/digit.gno similarity index 100% rename from stdlibs/unicode/digit.go rename to stdlibs/unicode/digit.gno diff --git a/stdlibs/unicode/digit_test.go b/stdlibs/unicode/digit_test.gno similarity index 100% rename from stdlibs/unicode/digit_test.go rename to stdlibs/unicode/digit_test.gno diff --git a/stdlibs/unicode/example_test.go b/stdlibs/unicode/example_test.gno similarity index 100% rename from stdlibs/unicode/example_test.go rename to stdlibs/unicode/example_test.gno diff --git a/stdlibs/unicode/graphic.go b/stdlibs/unicode/graphic.gno similarity index 100% rename from stdlibs/unicode/graphic.go rename to stdlibs/unicode/graphic.gno diff --git a/stdlibs/unicode/graphic_test.go b/stdlibs/unicode/graphic_test.gno similarity index 100% rename from stdlibs/unicode/graphic_test.go rename to stdlibs/unicode/graphic_test.gno diff --git a/stdlibs/unicode/letter.go b/stdlibs/unicode/letter.gno similarity index 100% rename from stdlibs/unicode/letter.go rename to stdlibs/unicode/letter.gno diff --git a/stdlibs/unicode/letter_test.go b/stdlibs/unicode/letter_test.gno similarity index 100% rename from stdlibs/unicode/letter_test.go rename to stdlibs/unicode/letter_test.gno diff --git a/stdlibs/unicode/script_test.go b/stdlibs/unicode/script_test.gno similarity index 100% rename from stdlibs/unicode/script_test.go rename to stdlibs/unicode/script_test.gno diff --git a/stdlibs/unicode/tables.go b/stdlibs/unicode/tables.gno similarity index 99% rename from stdlibs/unicode/tables.go rename to stdlibs/unicode/tables.gno index 4a0892aca42..a9b23bfacd5 100644 --- a/stdlibs/unicode/tables.go +++ b/stdlibs/unicode/tables.gno @@ -8052,4 +8052,3 @@ var foldInherited = &RangeTable{ // Range bytes: 20994 16-bit, 21840 32-bit, 42834 total. // Fold orbit bytes: 88 pairs, 352 bytes - diff --git a/stdlibs/unicode/utf8/example_test.go b/stdlibs/unicode/utf8/example_test.gno similarity index 100% rename from stdlibs/unicode/utf8/example_test.go rename to stdlibs/unicode/utf8/example_test.gno diff --git a/stdlibs/unicode/utf8/utf8.go b/stdlibs/unicode/utf8/utf8.gno similarity index 100% rename from stdlibs/unicode/utf8/utf8.go rename to stdlibs/unicode/utf8/utf8.gno diff --git a/stdlibs/unicode/utf8/utf8_test.go b/stdlibs/unicode/utf8/utf8_test.gno similarity index 100% rename from stdlibs/unicode/utf8/utf8_test.go rename to stdlibs/unicode/utf8/utf8_test.gno diff --git a/tests/backup/addr0.go b/tests/backup/addr0.gno similarity index 100% rename from tests/backup/addr0.go rename to tests/backup/addr0.gno diff --git a/tests/backup/addr2.go b/tests/backup/addr2.gno similarity index 100% rename from tests/backup/addr2.go rename to tests/backup/addr2.gno diff --git a/tests/backup/assert0.go b/tests/backup/assert0.gno similarity index 100% rename from tests/backup/assert0.go rename to tests/backup/assert0.gno diff --git a/tests/backup/assert1.go b/tests/backup/assert1.gno similarity index 100% rename from tests/backup/assert1.go rename to tests/backup/assert1.gno diff --git a/tests/backup/assign0.go b/tests/backup/assign0.gno similarity index 100% rename from tests/backup/assign0.go rename to tests/backup/assign0.gno diff --git a/tests/backup/assign13.go b/tests/backup/assign13.gno similarity index 100% rename from tests/backup/assign13.go rename to tests/backup/assign13.gno diff --git a/tests/backup/assign14.go b/tests/backup/assign14.gno similarity index 100% rename from tests/backup/assign14.go rename to tests/backup/assign14.gno diff --git a/tests/backup/assign15.go b/tests/backup/assign15.gno similarity index 55% rename from tests/backup/assign15.go rename to tests/backup/assign15.gno index 5810c3007dc..7fce51412b5 100644 --- a/tests/backup/assign15.go +++ b/tests/backup/assign15.gno @@ -8,4 +8,4 @@ func main() { } // Error: -// _test/assign15.go:5:26: cannot use type chan<- struct{} as type <-chan struct{} in assignment +// _test/assign15.gno:5:26: cannot use type chan<- struct{} as type <-chan struct{} in assignment diff --git a/tests/backup/assign6.go b/tests/backup/assign6.gno similarity index 100% rename from tests/backup/assign6.go rename to tests/backup/assign6.gno diff --git a/tests/backup/assign7.go b/tests/backup/assign7.gno similarity index 100% rename from tests/backup/assign7.go rename to tests/backup/assign7.gno diff --git a/tests/backup/bad0.go b/tests/backup/bad0.gno similarity index 100% rename from tests/backup/bad0.go rename to tests/backup/bad0.gno diff --git a/tests/backup/bin2.go b/tests/backup/bin2.gno similarity index 100% rename from tests/backup/bin2.go rename to tests/backup/bin2.gno diff --git a/tests/backup/chan0.go b/tests/backup/chan0.gno similarity index 100% rename from tests/backup/chan0.go rename to tests/backup/chan0.gno diff --git a/tests/backup/chan1.go b/tests/backup/chan1.gno similarity index 100% rename from tests/backup/chan1.go rename to tests/backup/chan1.gno diff --git a/tests/backup/chan10.go b/tests/backup/chan10.gno similarity index 100% rename from tests/backup/chan10.go rename to tests/backup/chan10.gno diff --git a/tests/backup/chan2.go b/tests/backup/chan2.gno similarity index 100% rename from tests/backup/chan2.go rename to tests/backup/chan2.gno diff --git a/tests/backup/chan3.go b/tests/backup/chan3.gno similarity index 100% rename from tests/backup/chan3.go rename to tests/backup/chan3.gno diff --git a/tests/backup/chan4.go b/tests/backup/chan4.gno similarity index 100% rename from tests/backup/chan4.go rename to tests/backup/chan4.gno diff --git a/tests/backup/chan5.go b/tests/backup/chan5.gno similarity index 100% rename from tests/backup/chan5.go rename to tests/backup/chan5.gno diff --git a/tests/backup/chan6.go b/tests/backup/chan6.gno similarity index 100% rename from tests/backup/chan6.go rename to tests/backup/chan6.gno diff --git a/tests/backup/chan7.go b/tests/backup/chan7.gno similarity index 100% rename from tests/backup/chan7.go rename to tests/backup/chan7.gno diff --git a/tests/backup/chan8.go b/tests/backup/chan8.gno similarity index 100% rename from tests/backup/chan8.go rename to tests/backup/chan8.gno diff --git a/tests/backup/chan9.go b/tests/backup/chan9.gno similarity index 100% rename from tests/backup/chan9.go rename to tests/backup/chan9.gno diff --git a/tests/backup/circular.go b/tests/backup/circular.gno similarity index 100% rename from tests/backup/circular.go rename to tests/backup/circular.gno diff --git a/tests/backup/cli1.go b/tests/backup/cli1.gno similarity index 100% rename from tests/backup/cli1.go rename to tests/backup/cli1.gno diff --git a/tests/backup/cli2.go b/tests/backup/cli2.gno similarity index 100% rename from tests/backup/cli2.go rename to tests/backup/cli2.gno diff --git a/tests/backup/cli3.go b/tests/backup/cli3.gno similarity index 100% rename from tests/backup/cli3.go rename to tests/backup/cli3.gno diff --git a/tests/backup/cli4.go b/tests/backup/cli4.gno similarity index 100% rename from tests/backup/cli4.go rename to tests/backup/cli4.gno diff --git a/tests/backup/cli5.go b/tests/backup/cli5.gno similarity index 100% rename from tests/backup/cli5.go rename to tests/backup/cli5.gno diff --git a/tests/backup/cli6.go b/tests/backup/cli6.gno similarity index 100% rename from tests/backup/cli6.go rename to tests/backup/cli6.gno diff --git a/tests/backup/comp0.go b/tests/backup/comp0.gno similarity index 100% rename from tests/backup/comp0.go rename to tests/backup/comp0.gno diff --git a/tests/backup/complex0.go b/tests/backup/complex0.gno similarity index 100% rename from tests/backup/complex0.go rename to tests/backup/complex0.gno diff --git a/tests/backup/complex1.go b/tests/backup/complex1.gno similarity index 100% rename from tests/backup/complex1.go rename to tests/backup/complex1.gno diff --git a/tests/backup/complex2.go b/tests/backup/complex2.gno similarity index 100% rename from tests/backup/complex2.go rename to tests/backup/complex2.gno diff --git a/tests/backup/complex3.go b/tests/backup/complex3.gno similarity index 100% rename from tests/backup/complex3.go rename to tests/backup/complex3.gno diff --git a/tests/backup/complex4.go b/tests/backup/complex4.gno similarity index 100% rename from tests/backup/complex4.go rename to tests/backup/complex4.gno diff --git a/tests/backup/composite2.go b/tests/backup/composite2.gno similarity index 100% rename from tests/backup/composite2.go rename to tests/backup/composite2.gno diff --git a/tests/backup/composite5.go b/tests/backup/composite5.gno similarity index 100% rename from tests/backup/composite5.go rename to tests/backup/composite5.gno diff --git a/tests/backup/composite6.go b/tests/backup/composite6.gno similarity index 100% rename from tests/backup/composite6.go rename to tests/backup/composite6.gno diff --git a/tests/backup/convert2.go b/tests/backup/convert2.gno similarity index 100% rename from tests/backup/convert2.go rename to tests/backup/convert2.gno diff --git a/tests/backup/defer9.go b/tests/backup/defer9.gno similarity index 100% rename from tests/backup/defer9.go rename to tests/backup/defer9.gno diff --git a/tests/backup/eval0.go b/tests/backup/eval0.gno similarity index 100% rename from tests/backup/eval0.go rename to tests/backup/eval0.gno diff --git a/tests/backup/file_access.go b/tests/backup/file_access.gno similarity index 100% rename from tests/backup/file_access.go rename to tests/backup/file_access.gno diff --git a/tests/backup/flag0.go b/tests/backup/flag0.gno similarity index 100% rename from tests/backup/flag0.go rename to tests/backup/flag0.gno diff --git a/tests/backup/fun10.go b/tests/backup/fun10.gno similarity index 100% rename from tests/backup/fun10.go rename to tests/backup/fun10.gno diff --git a/tests/backup/fun19.go b/tests/backup/fun19.gno similarity index 100% rename from tests/backup/fun19.go rename to tests/backup/fun19.gno diff --git a/tests/backup/fun20.go b/tests/backup/fun20.gno similarity index 100% rename from tests/backup/fun20.go rename to tests/backup/fun20.gno diff --git a/tests/backup/heap.go b/tests/backup/heap.gno similarity index 100% rename from tests/backup/heap.go rename to tests/backup/heap.gno diff --git a/tests/backup/imag0.go b/tests/backup/imag0.gno similarity index 100% rename from tests/backup/imag0.go rename to tests/backup/imag0.gno diff --git a/tests/backup/import2.go b/tests/backup/import2.gno similarity index 100% rename from tests/backup/import2.go rename to tests/backup/import2.gno diff --git a/tests/backup/inception.go b/tests/backup/inception.gno similarity index 100% rename from tests/backup/inception.go rename to tests/backup/inception.gno diff --git a/tests/backup/interface16.go b/tests/backup/interface16.gno similarity index 100% rename from tests/backup/interface16.go rename to tests/backup/interface16.gno diff --git a/tests/backup/interface27.go b/tests/backup/interface27.gno similarity index 100% rename from tests/backup/interface27.go rename to tests/backup/interface27.gno diff --git a/tests/backup/interface28.go b/tests/backup/interface28.gno similarity index 100% rename from tests/backup/interface28.go rename to tests/backup/interface28.gno diff --git a/tests/backup/interface38.go b/tests/backup/interface38.gno similarity index 100% rename from tests/backup/interface38.go rename to tests/backup/interface38.gno diff --git a/tests/backup/interface39.go b/tests/backup/interface39.gno similarity index 100% rename from tests/backup/interface39.go rename to tests/backup/interface39.gno diff --git a/tests/backup/interface40.go b/tests/backup/interface40.gno similarity index 100% rename from tests/backup/interface40.go rename to tests/backup/interface40.gno diff --git a/tests/backup/interface41.go b/tests/backup/interface41.gno similarity index 100% rename from tests/backup/interface41.go rename to tests/backup/interface41.gno diff --git a/tests/backup/interface7.go b/tests/backup/interface7.gno similarity index 100% rename from tests/backup/interface7.go rename to tests/backup/interface7.gno diff --git a/tests/backup/interface9.go b/tests/backup/interface9.gno similarity index 100% rename from tests/backup/interface9.go rename to tests/backup/interface9.gno diff --git a/tests/backup/ioutil.go b/tests/backup/ioutil.gno similarity index 100% rename from tests/backup/ioutil.go rename to tests/backup/ioutil.gno diff --git a/tests/backup/issue-558.go b/tests/backup/issue-558.gno similarity index 100% rename from tests/backup/issue-558.go rename to tests/backup/issue-558.gno diff --git a/tests/backup/issue-770.go b/tests/backup/issue-770.gno similarity index 100% rename from tests/backup/issue-770.go rename to tests/backup/issue-770.gno diff --git a/tests/backup/issue-772.go b/tests/backup/issue-772.gno similarity index 100% rename from tests/backup/issue-772.go rename to tests/backup/issue-772.gno diff --git a/tests/backup/issue-775.go b/tests/backup/issue-775.gno similarity index 100% rename from tests/backup/issue-775.go rename to tests/backup/issue-775.gno diff --git a/tests/backup/make.go b/tests/backup/make.gno similarity index 100% rename from tests/backup/make.go rename to tests/backup/make.gno diff --git a/tests/backup/map14.go b/tests/backup/map14.gno similarity index 100% rename from tests/backup/map14.go rename to tests/backup/map14.gno diff --git a/tests/backup/map19.go b/tests/backup/map19.gno similarity index 100% rename from tests/backup/map19.go rename to tests/backup/map19.gno diff --git a/tests/backup/map28.go b/tests/backup/map28.gno similarity index 100% rename from tests/backup/map28.go rename to tests/backup/map28.gno diff --git a/tests/backup/math1.go b/tests/backup/math1.gno similarity index 100% rename from tests/backup/math1.go rename to tests/backup/math1.gno diff --git a/tests/backup/method16.go b/tests/backup/method16.gno similarity index 100% rename from tests/backup/method16.go rename to tests/backup/method16.gno diff --git a/tests/backup/method17.go b/tests/backup/method17.gno similarity index 100% rename from tests/backup/method17.go rename to tests/backup/method17.gno diff --git a/tests/backup/method29.go b/tests/backup/method29.gno similarity index 100% rename from tests/backup/method29.go rename to tests/backup/method29.gno diff --git a/tests/backup/method31.go b/tests/backup/method31.gno similarity index 100% rename from tests/backup/method31.go rename to tests/backup/method31.gno diff --git a/tests/backup/num0.go b/tests/backup/num0.gno similarity index 100% rename from tests/backup/num0.go rename to tests/backup/num0.gno diff --git a/tests/backup/op1.go b/tests/backup/op1.gno similarity index 100% rename from tests/backup/op1.go rename to tests/backup/op1.gno diff --git a/tests/backup/op3.go b/tests/backup/op3.gno similarity index 100% rename from tests/backup/op3.go rename to tests/backup/op3.gno diff --git a/tests/backup/op4.go b/tests/backup/op4.gno similarity index 100% rename from tests/backup/op4.go rename to tests/backup/op4.gno diff --git a/tests/backup/op5.go b/tests/backup/op5.gno similarity index 100% rename from tests/backup/op5.go rename to tests/backup/op5.gno diff --git a/tests/backup/op9.go b/tests/backup/op9.gno similarity index 57% rename from tests/backup/op9.go rename to tests/backup/op9.gno index cbe37b5a5cf..136479b1bfb 100644 --- a/tests/backup/op9.go +++ b/tests/backup/op9.gno @@ -8,4 +8,4 @@ func main() { } // Error: -// _test/op9.go:7:8: invalid operation: operator > not defined on complex128 +// _test/op9.gno:7:8: invalid operation: operator > not defined on complex128 diff --git a/tests/backup/opfloat32.go b/tests/backup/opfloat32.gno similarity index 100% rename from tests/backup/opfloat32.go rename to tests/backup/opfloat32.gno diff --git a/tests/backup/opfloat64.go b/tests/backup/opfloat64.gno similarity index 100% rename from tests/backup/opfloat64.go rename to tests/backup/opfloat64.gno diff --git a/tests/backup/range6.go b/tests/backup/range6.gno similarity index 100% rename from tests/backup/range6.go rename to tests/backup/range6.gno diff --git a/tests/backup/range7.go b/tests/backup/range7.gno similarity index 95% rename from tests/backup/range7.go rename to tests/backup/range7.gno index cbba98a1542..de2697cfeeb 100644 --- a/tests/backup/range7.go +++ b/tests/backup/range7.gno @@ -18,4 +18,4 @@ func main() { } // Output: -// success \ No newline at end of file +// success diff --git a/tests/backup/range8.go b/tests/backup/range8.gno similarity index 100% rename from tests/backup/range8.go rename to tests/backup/range8.gno diff --git a/tests/backup/range9.go b/tests/backup/range9.gno similarity index 56% rename from tests/backup/range9.go rename to tests/backup/range9.gno index fec17b28573..98e9a6d5301 100644 --- a/tests/backup/range9.go +++ b/tests/backup/range9.gno @@ -8,4 +8,4 @@ func main() { } // Error: -// _test/range9.go:6:16: invalid operation: range c receive from send-only channel +// _test/range9.gno:6:16: invalid operation: range c receive from send-only channel diff --git a/tests/backup/real0.go b/tests/backup/real0.gno similarity index 100% rename from tests/backup/real0.go rename to tests/backup/real0.gno diff --git a/tests/backup/redeclaration-global2.go b/tests/backup/redeclaration-global2.gno similarity index 51% rename from tests/backup/redeclaration-global2.go rename to tests/backup/redeclaration-global2.gno index 755fb713559..de9f3e6078d 100644 --- a/tests/backup/redeclaration-global2.go +++ b/tests/backup/redeclaration-global2.gno @@ -11,4 +11,4 @@ func main() { } // Error: -// ../_test/redeclaration-global2.go:5:2: time/redeclaration-global2.go redeclared in this block +// ../_test/redeclaration-global2.gno:5:2: time/redeclaration-global2.gno redeclared in this block diff --git a/tests/backup/redeclaration-global3.go b/tests/backup/redeclaration-global3.gno similarity index 59% rename from tests/backup/redeclaration-global3.go rename to tests/backup/redeclaration-global3.gno index db439c3b8af..49ad1da3f82 100644 --- a/tests/backup/redeclaration-global3.go +++ b/tests/backup/redeclaration-global3.gno @@ -12,4 +12,4 @@ func main() { } // Error: -// ../_test/redeclaration-global3.go:7:5: time redeclared in this block +// ../_test/redeclaration-global3.gno:7:5: time redeclared in this block diff --git a/tests/backup/redeclaration-global4.go b/tests/backup/redeclaration-global4.gno similarity index 60% rename from tests/backup/redeclaration-global4.go rename to tests/backup/redeclaration-global4.gno index 3a0c807b02b..74114c0d95c 100644 --- a/tests/backup/redeclaration-global4.go +++ b/tests/backup/redeclaration-global4.gno @@ -12,4 +12,4 @@ func main() { } // Error: -// ../_test/redeclaration-global4.go:7:6: time redeclared in this block +// ../_test/redeclaration-global4.gno:7:6: time redeclared in this block diff --git a/tests/backup/redeclaration-global6.go b/tests/backup/redeclaration-global6.gno similarity index 63% rename from tests/backup/redeclaration-global6.go rename to tests/backup/redeclaration-global6.gno index 728b4c74bcb..f685969515e 100644 --- a/tests/backup/redeclaration-global6.go +++ b/tests/backup/redeclaration-global6.gno @@ -14,4 +14,4 @@ func main() { } // Error: -// ../_test/redeclaration-global6.go:7:1: time redeclared in this block +// ../_test/redeclaration-global6.gno:7:1: time redeclared in this block diff --git a/tests/backup/redeclaration-global7.go b/tests/backup/redeclaration-global7.gno similarity index 65% rename from tests/backup/redeclaration-global7.go rename to tests/backup/redeclaration-global7.gno index f255f444514..e968ab32363 100644 --- a/tests/backup/redeclaration-global7.go +++ b/tests/backup/redeclaration-global7.gno @@ -10,4 +10,4 @@ func main() { } // Error: -// ../_test/redeclaration-global7.go:5:2: quux/redeclaration-global7.go redeclared as imported package name +// ../_test/redeclaration-global7.gno:5:2: quux/redeclaration-global7.gno redeclared as imported package name diff --git a/tests/backup/restricted0.go b/tests/backup/restricted0.gno similarity index 100% rename from tests/backup/restricted0.go rename to tests/backup/restricted0.gno diff --git a/tests/backup/restricted1.go b/tests/backup/restricted1.gno similarity index 100% rename from tests/backup/restricted1.go rename to tests/backup/restricted1.gno diff --git a/tests/backup/restricted2.go b/tests/backup/restricted2.gno similarity index 100% rename from tests/backup/restricted2.go rename to tests/backup/restricted2.gno diff --git a/tests/backup/restricted3.go b/tests/backup/restricted3.gno similarity index 82% rename from tests/backup/restricted3.go rename to tests/backup/restricted3.gno index 4bd10ee1f64..d78cbe374d5 100644 --- a/tests/backup/restricted3.go +++ b/tests/backup/restricted3.gno @@ -20,4 +20,4 @@ func main() { } // Output: -// recover: test log logger: restricted.go:39: test log +// recover: test log logger: restricted.gno:39: test log diff --git a/tests/backup/select.go b/tests/backup/select.gno similarity index 100% rename from tests/backup/select.go rename to tests/backup/select.gno diff --git a/tests/backup/select0.go b/tests/backup/select0.gno similarity index 100% rename from tests/backup/select0.go rename to tests/backup/select0.gno diff --git a/tests/backup/select1.go b/tests/backup/select1.gno similarity index 100% rename from tests/backup/select1.go rename to tests/backup/select1.gno diff --git a/tests/backup/select10.go b/tests/backup/select10.gno similarity index 100% rename from tests/backup/select10.go rename to tests/backup/select10.gno diff --git a/tests/backup/select11.go b/tests/backup/select11.gno similarity index 100% rename from tests/backup/select11.go rename to tests/backup/select11.gno diff --git a/tests/backup/select12.go b/tests/backup/select12.gno similarity index 100% rename from tests/backup/select12.go rename to tests/backup/select12.gno diff --git a/tests/backup/select13.go b/tests/backup/select13.gno similarity index 100% rename from tests/backup/select13.go rename to tests/backup/select13.gno diff --git a/tests/backup/select14.go b/tests/backup/select14.gno similarity index 100% rename from tests/backup/select14.go rename to tests/backup/select14.gno diff --git a/tests/backup/select15.go b/tests/backup/select15.gno similarity index 100% rename from tests/backup/select15.go rename to tests/backup/select15.gno diff --git a/tests/backup/select2.go b/tests/backup/select2.gno similarity index 100% rename from tests/backup/select2.go rename to tests/backup/select2.gno diff --git a/tests/backup/select3.go b/tests/backup/select3.gno similarity index 100% rename from tests/backup/select3.go rename to tests/backup/select3.gno diff --git a/tests/backup/select4.go b/tests/backup/select4.gno similarity index 100% rename from tests/backup/select4.go rename to tests/backup/select4.gno diff --git a/tests/backup/select5.go b/tests/backup/select5.gno similarity index 100% rename from tests/backup/select5.go rename to tests/backup/select5.gno diff --git a/tests/backup/select6.go b/tests/backup/select6.gno similarity index 100% rename from tests/backup/select6.go rename to tests/backup/select6.gno diff --git a/tests/backup/select7.go b/tests/backup/select7.gno similarity index 100% rename from tests/backup/select7.go rename to tests/backup/select7.gno diff --git a/tests/backup/select8.go b/tests/backup/select8.gno similarity index 100% rename from tests/backup/select8.go rename to tests/backup/select8.gno diff --git a/tests/backup/select9.go b/tests/backup/select9.gno similarity index 100% rename from tests/backup/select9.go rename to tests/backup/select9.gno diff --git a/tests/backup/selector-scope0.go b/tests/backup/selector-scope0.gno similarity index 100% rename from tests/backup/selector-scope0.go rename to tests/backup/selector-scope0.gno diff --git a/tests/backup/server.go b/tests/backup/server.gno similarity index 100% rename from tests/backup/server.go rename to tests/backup/server.gno diff --git a/tests/backup/server0.go b/tests/backup/server0.gno similarity index 100% rename from tests/backup/server0.go rename to tests/backup/server0.gno diff --git a/tests/backup/server1.go b/tests/backup/server1.gno similarity index 100% rename from tests/backup/server1.go rename to tests/backup/server1.gno diff --git a/tests/backup/server1a.go b/tests/backup/server1a.gno similarity index 100% rename from tests/backup/server1a.go rename to tests/backup/server1a.gno diff --git a/tests/backup/server2.go b/tests/backup/server2.gno similarity index 100% rename from tests/backup/server2.go rename to tests/backup/server2.gno diff --git a/tests/backup/server3.go b/tests/backup/server3.gno similarity index 100% rename from tests/backup/server3.go rename to tests/backup/server3.gno diff --git a/tests/backup/server4.go b/tests/backup/server4.gno similarity index 100% rename from tests/backup/server4.go rename to tests/backup/server4.gno diff --git a/tests/backup/server5.go b/tests/backup/server5.gno similarity index 100% rename from tests/backup/server5.go rename to tests/backup/server5.gno diff --git a/tests/backup/server6.go b/tests/backup/server6.gno similarity index 100% rename from tests/backup/server6.go rename to tests/backup/server6.gno diff --git a/tests/backup/server7.go b/tests/backup/server7.gno similarity index 100% rename from tests/backup/server7.go rename to tests/backup/server7.gno diff --git a/tests/backup/shift3.go b/tests/backup/shift3.gno similarity index 100% rename from tests/backup/shift3.go rename to tests/backup/shift3.gno diff --git a/tests/backup/sieve.go b/tests/backup/sieve.gno similarity index 100% rename from tests/backup/sieve.go rename to tests/backup/sieve.gno diff --git a/tests/backup/struct15.go b/tests/backup/struct15.gno similarity index 100% rename from tests/backup/struct15.go rename to tests/backup/struct15.gno diff --git a/tests/backup/struct18.go b/tests/backup/struct18.gno similarity index 100% rename from tests/backup/struct18.go rename to tests/backup/struct18.gno diff --git a/tests/backup/struct23.go b/tests/backup/struct23.gno similarity index 100% rename from tests/backup/struct23.go rename to tests/backup/struct23.gno diff --git a/tests/backup/struct28.go b/tests/backup/struct28.gno similarity index 100% rename from tests/backup/struct28.go rename to tests/backup/struct28.gno diff --git a/tests/backup/struct50.go b/tests/backup/struct50.gno similarity index 100% rename from tests/backup/struct50.go rename to tests/backup/struct50.gno diff --git a/tests/backup/struct51.go b/tests/backup/struct51.gno similarity index 100% rename from tests/backup/struct51.go rename to tests/backup/struct51.gno diff --git a/tests/backup/struct52.go b/tests/backup/struct52.gno similarity index 100% rename from tests/backup/struct52.go rename to tests/backup/struct52.gno diff --git a/tests/backup/struct53.go b/tests/backup/struct53.gno similarity index 100% rename from tests/backup/struct53.go rename to tests/backup/struct53.gno diff --git a/tests/backup/struct55.go b/tests/backup/struct55.gno similarity index 100% rename from tests/backup/struct55.go rename to tests/backup/struct55.gno diff --git a/tests/backup/struct58.go b/tests/backup/struct58.gno similarity index 100% rename from tests/backup/struct58.go rename to tests/backup/struct58.gno diff --git a/tests/backup/tag0.go b/tests/backup/tag0.gno similarity index 100% rename from tests/backup/tag0.go rename to tests/backup/tag0.gno diff --git a/tests/backup/time10.go b/tests/backup/time10.gno similarity index 100% rename from tests/backup/time10.go rename to tests/backup/time10.gno diff --git a/tests/backup/time5.go b/tests/backup/time5.gno similarity index 100% rename from tests/backup/time5.go rename to tests/backup/time5.gno diff --git a/tests/backup/type10.go b/tests/backup/type10.gno similarity index 100% rename from tests/backup/type10.go rename to tests/backup/type10.gno diff --git a/tests/backup/type21.go b/tests/backup/type21.gno similarity index 100% rename from tests/backup/type21.go rename to tests/backup/type21.gno diff --git a/tests/backup/type23.go b/tests/backup/type23.gno similarity index 100% rename from tests/backup/type23.go rename to tests/backup/type23.gno diff --git a/tests/backup/type24.go b/tests/backup/type24.gno similarity index 100% rename from tests/backup/type24.go rename to tests/backup/type24.gno diff --git a/tests/backup/type25.go b/tests/backup/type25.gno similarity index 100% rename from tests/backup/type25.go rename to tests/backup/type25.gno diff --git a/tests/backup/type26.go b/tests/backup/type26.gno similarity index 100% rename from tests/backup/type26.go rename to tests/backup/type26.gno diff --git a/tests/backup/type4.go b/tests/backup/type4.gno similarity index 100% rename from tests/backup/type4.go rename to tests/backup/type4.gno diff --git a/tests/backup/type5.go b/tests/backup/type5.gno similarity index 100% rename from tests/backup/type5.go rename to tests/backup/type5.gno diff --git a/tests/backup/type6.go b/tests/backup/type6.gno similarity index 100% rename from tests/backup/type6.go rename to tests/backup/type6.gno diff --git a/tests/backup/type9.go b/tests/backup/type9.gno similarity index 100% rename from tests/backup/type9.go rename to tests/backup/type9.gno diff --git a/tests/backup/unsafe0.go b/tests/backup/unsafe0.gno similarity index 100% rename from tests/backup/unsafe0.go rename to tests/backup/unsafe0.gno diff --git a/tests/backup/unsafe1.go b/tests/backup/unsafe1.gno similarity index 100% rename from tests/backup/unsafe1.go rename to tests/backup/unsafe1.gno diff --git a/tests/backup/unsafe2.go b/tests/backup/unsafe2.gno similarity index 100% rename from tests/backup/unsafe2.go rename to tests/backup/unsafe2.gno diff --git a/tests/backup/unsafe3.go b/tests/backup/unsafe3.gno similarity index 100% rename from tests/backup/unsafe3.go rename to tests/backup/unsafe3.gno diff --git a/tests/backup/unsafe4.go b/tests/backup/unsafe4.gno similarity index 100% rename from tests/backup/unsafe4.go rename to tests/backup/unsafe4.gno diff --git a/tests/backup/unsafe5.go b/tests/backup/unsafe5.gno similarity index 100% rename from tests/backup/unsafe5.go rename to tests/backup/unsafe5.gno diff --git a/tests/backup/var8.go b/tests/backup/var8.gno similarity index 100% rename from tests/backup/var8.go rename to tests/backup/var8.gno diff --git a/tests/backup/variadic10.go b/tests/backup/variadic10.gno similarity index 100% rename from tests/backup/variadic10.go rename to tests/backup/variadic10.gno diff --git a/tests/backup/variadic7.go b/tests/backup/variadic7.gno similarity index 100% rename from tests/backup/variadic7.go rename to tests/backup/variadic7.gno diff --git a/tests/backup/variadic8.go b/tests/backup/variadic8.gno similarity index 100% rename from tests/backup/variadic8.go rename to tests/backup/variadic8.gno diff --git a/tests/challenges/composite0b.go b/tests/challenges/composite0b.gno similarity index 100% rename from tests/challenges/composite0b.go rename to tests/challenges/composite0b.gno diff --git a/tests/challenges/composite1b.go b/tests/challenges/composite1b.gno similarity index 100% rename from tests/challenges/composite1b.go rename to tests/challenges/composite1b.gno diff --git a/tests/challenges/switch3.go b/tests/challenges/switch3.gno similarity index 100% rename from tests/challenges/switch3.go rename to tests/challenges/switch3.gno diff --git a/tests/challenges/switch4.go b/tests/challenges/switch4.gno similarity index 100% rename from tests/challenges/switch4.go rename to tests/challenges/switch4.gno diff --git a/tests/challenges/switch6.go b/tests/challenges/switch6.gno similarity index 100% rename from tests/challenges/switch6.go rename to tests/challenges/switch6.gno diff --git a/tests/challenges/switch8.go b/tests/challenges/switch8.gno similarity index 100% rename from tests/challenges/switch8.go rename to tests/challenges/switch8.gno diff --git a/tests/challenges/switch9.go b/tests/challenges/switch9.gno similarity index 100% rename from tests/challenges/switch9.go rename to tests/challenges/switch9.gno diff --git a/tests/challenges/variadic9.go b/tests/challenges/variadic9.gno similarity index 100% rename from tests/challenges/variadic9.go rename to tests/challenges/variadic9.gno diff --git a/tests/file_test.go b/tests/file_test.go index d71f1cff382..f0eb508bd9f 100644 --- a/tests/file_test.go +++ b/tests/file_test.go @@ -22,11 +22,11 @@ import ( ) func TestFileStr(t *testing.T) { - filePath := "./files/str.go" + filePath := "./files/str.gno" runFileTest(t, filePath, true) } -// Bootstrapping test files from tests/files/*.go, +// Bootstrapping test files from tests/files/*.gno, // which primarily uses native stdlib shims. func TestFiles1(t *testing.T) { baseDir := filepath.Join(".", "files") @@ -35,7 +35,7 @@ func TestFiles1(t *testing.T) { t.Fatal(err) } for _, file := range files { - if filepath.Ext(file.Name()) != ".go" { + if filepath.Ext(file.Name()) != ".gno" { continue } if testing.Short() && strings.Contains(file.Name(), "_long") { @@ -57,7 +57,7 @@ func TestFiles2(t *testing.T) { t.Fatal(err) } for _, file := range files { - if filepath.Ext(file.Name()) != ".go" { + if filepath.Ext(file.Name()) != ".gno" { continue } if testing.Short() && strings.Contains(file.Name(), "_long") { @@ -145,7 +145,7 @@ func runFileTest(t *testing.T, path string, nativeLibs bool) { store.SetBlockNode(pn) store.SetCachePackage(pv) m.SetActivePackage(pv) - n := gno.MustParseFile(path, string(bz)) // "main.go", string(bz)) + n := gno.MustParseFile(path, string(bz)) // "main.gno", string(bz)) m.RunFiles(n) if gno.IsDebug() && testing.Verbose() { t.Log("========================================") @@ -168,7 +168,7 @@ func runFileTest(t *testing.T, path string, nativeLibs bool) { Path: pkgPath, Files: []*std.MemFile{ { - Name: "main.go", // dontcare + Name: "main.gno", // dontcare Body: string(bz), }, }, diff --git a/tests/files/a1.go b/tests/files/a1.gno similarity index 100% rename from tests/files/a1.go rename to tests/files/a1.gno diff --git a/tests/files/a10.go b/tests/files/a10.gno similarity index 100% rename from tests/files/a10.go rename to tests/files/a10.gno diff --git a/tests/files/a11.go b/tests/files/a11.gno similarity index 100% rename from tests/files/a11.go rename to tests/files/a11.gno diff --git a/tests/files/a12.go b/tests/files/a12.gno similarity index 100% rename from tests/files/a12.go rename to tests/files/a12.gno diff --git a/tests/files/a13.go b/tests/files/a13.gno similarity index 100% rename from tests/files/a13.go rename to tests/files/a13.gno diff --git a/tests/files/a14.go b/tests/files/a14.gno similarity index 100% rename from tests/files/a14.go rename to tests/files/a14.gno diff --git a/tests/files/a15.go b/tests/files/a15.gno similarity index 100% rename from tests/files/a15.go rename to tests/files/a15.gno diff --git a/tests/files/a16.go b/tests/files/a16.gno similarity index 100% rename from tests/files/a16.go rename to tests/files/a16.gno diff --git a/tests/files/a17.go b/tests/files/a17.gno similarity index 100% rename from tests/files/a17.go rename to tests/files/a17.gno diff --git a/tests/files/a18.go b/tests/files/a18.gno similarity index 100% rename from tests/files/a18.go rename to tests/files/a18.gno diff --git a/tests/files/a19.go b/tests/files/a19.gno similarity index 100% rename from tests/files/a19.go rename to tests/files/a19.gno diff --git a/tests/files/a2.go b/tests/files/a2.gno similarity index 100% rename from tests/files/a2.go rename to tests/files/a2.gno diff --git a/tests/files/a20.go b/tests/files/a20.gno similarity index 100% rename from tests/files/a20.go rename to tests/files/a20.gno diff --git a/tests/files/a21.go b/tests/files/a21.gno similarity index 100% rename from tests/files/a21.go rename to tests/files/a21.gno diff --git a/tests/files/a22.go b/tests/files/a22.gno similarity index 100% rename from tests/files/a22.go rename to tests/files/a22.gno diff --git a/tests/files/a23.go b/tests/files/a23.gno similarity index 100% rename from tests/files/a23.go rename to tests/files/a23.gno diff --git a/tests/files/a24.go b/tests/files/a24.gno similarity index 100% rename from tests/files/a24.go rename to tests/files/a24.gno diff --git a/tests/files/a25.go b/tests/files/a25.gno similarity index 100% rename from tests/files/a25.go rename to tests/files/a25.gno diff --git a/tests/files/a26.go b/tests/files/a26.gno similarity index 100% rename from tests/files/a26.go rename to tests/files/a26.gno diff --git a/tests/files/a27.go b/tests/files/a27.gno similarity index 100% rename from tests/files/a27.go rename to tests/files/a27.gno diff --git a/tests/files/a28.go b/tests/files/a28.gno similarity index 100% rename from tests/files/a28.go rename to tests/files/a28.gno diff --git a/tests/files/a29.go b/tests/files/a29.gno similarity index 100% rename from tests/files/a29.go rename to tests/files/a29.gno diff --git a/tests/files/a3.go b/tests/files/a3.gno similarity index 100% rename from tests/files/a3.go rename to tests/files/a3.gno diff --git a/tests/files/a30.go b/tests/files/a30.gno similarity index 100% rename from tests/files/a30.go rename to tests/files/a30.gno diff --git a/tests/files/a31.go b/tests/files/a31.gno similarity index 100% rename from tests/files/a31.go rename to tests/files/a31.gno diff --git a/tests/files/a32.go b/tests/files/a32.gno similarity index 100% rename from tests/files/a32.go rename to tests/files/a32.gno diff --git a/tests/files/a33.go b/tests/files/a33.gno similarity index 100% rename from tests/files/a33.go rename to tests/files/a33.gno diff --git a/tests/files/a34.go b/tests/files/a34.gno similarity index 100% rename from tests/files/a34.go rename to tests/files/a34.gno diff --git a/tests/files/a35.go b/tests/files/a35.gno similarity index 100% rename from tests/files/a35.go rename to tests/files/a35.gno diff --git a/tests/files/a36.go b/tests/files/a36.gno similarity index 100% rename from tests/files/a36.go rename to tests/files/a36.gno diff --git a/tests/files/a37.go b/tests/files/a37.gno similarity index 100% rename from tests/files/a37.go rename to tests/files/a37.gno diff --git a/tests/files/a38.go b/tests/files/a38.gno similarity index 100% rename from tests/files/a38.go rename to tests/files/a38.gno diff --git a/tests/files/a39.go b/tests/files/a39.gno similarity index 100% rename from tests/files/a39.go rename to tests/files/a39.gno diff --git a/tests/files/a4.go b/tests/files/a4.gno similarity index 100% rename from tests/files/a4.go rename to tests/files/a4.gno diff --git a/tests/files/a40.go b/tests/files/a40.gno similarity index 100% rename from tests/files/a40.go rename to tests/files/a40.gno diff --git a/tests/files/a41.go b/tests/files/a41.gno similarity index 100% rename from tests/files/a41.go rename to tests/files/a41.gno diff --git a/tests/files/a42.go b/tests/files/a42.gno similarity index 100% rename from tests/files/a42.go rename to tests/files/a42.gno diff --git a/tests/files/a43.go b/tests/files/a43.gno similarity index 100% rename from tests/files/a43.go rename to tests/files/a43.gno diff --git a/tests/files/a44.go b/tests/files/a44.gno similarity index 100% rename from tests/files/a44.go rename to tests/files/a44.gno diff --git a/tests/files/a45.go b/tests/files/a45.gno similarity index 100% rename from tests/files/a45.go rename to tests/files/a45.gno diff --git a/tests/files/a45a.go b/tests/files/a45a.gno similarity index 100% rename from tests/files/a45a.go rename to tests/files/a45a.gno diff --git a/tests/files/a46.go b/tests/files/a46.gno similarity index 100% rename from tests/files/a46.go rename to tests/files/a46.gno diff --git a/tests/files/a5.go b/tests/files/a5.gno similarity index 100% rename from tests/files/a5.go rename to tests/files/a5.gno diff --git a/tests/files/a6.go b/tests/files/a6.gno similarity index 100% rename from tests/files/a6.go rename to tests/files/a6.gno diff --git a/tests/files/a7.go b/tests/files/a7.gno similarity index 100% rename from tests/files/a7.go rename to tests/files/a7.gno diff --git a/tests/files/a8.go b/tests/files/a8.gno similarity index 100% rename from tests/files/a8.go rename to tests/files/a8.gno diff --git a/tests/files/a9.go b/tests/files/a9.gno similarity index 100% rename from tests/files/a9.go rename to tests/files/a9.gno diff --git a/tests/files/add0.go b/tests/files/add0.gno similarity index 100% rename from tests/files/add0.go rename to tests/files/add0.gno diff --git a/tests/files/add1.go b/tests/files/add1.gno similarity index 100% rename from tests/files/add1.go rename to tests/files/add1.gno diff --git a/tests/files/add2.go b/tests/files/add2.gno similarity index 100% rename from tests/files/add2.go rename to tests/files/add2.gno diff --git a/tests/files/addr0b.go b/tests/files/addr0b.gno similarity index 100% rename from tests/files/addr0b.go rename to tests/files/addr0b.gno diff --git a/tests/files/addr1.go b/tests/files/addr1.gno similarity index 100% rename from tests/files/addr1.go rename to tests/files/addr1.gno diff --git a/tests/files/addr2b.go b/tests/files/addr2b.gno similarity index 100% rename from tests/files/addr2b.go rename to tests/files/addr2b.gno diff --git a/tests/files/alias0.go b/tests/files/alias0.gno similarity index 100% rename from tests/files/alias0.go rename to tests/files/alias0.gno diff --git a/tests/files/alias1.go b/tests/files/alias1.gno similarity index 100% rename from tests/files/alias1.go rename to tests/files/alias1.gno diff --git a/tests/files/and.go b/tests/files/and.gno similarity index 100% rename from tests/files/and.go rename to tests/files/and.gno diff --git a/tests/files/and0.go b/tests/files/and0.gno similarity index 100% rename from tests/files/and0.go rename to tests/files/and0.gno diff --git a/tests/files/and1.go b/tests/files/and1.gno similarity index 100% rename from tests/files/and1.go rename to tests/files/and1.gno diff --git a/tests/files/and2.go b/tests/files/and2.gno similarity index 100% rename from tests/files/and2.go rename to tests/files/and2.gno diff --git a/tests/files/and3.go b/tests/files/and3.gno similarity index 100% rename from tests/files/and3.go rename to tests/files/and3.gno diff --git a/tests/files/append0.go b/tests/files/append0.gno similarity index 100% rename from tests/files/append0.go rename to tests/files/append0.gno diff --git a/tests/files/append1.go b/tests/files/append1.gno similarity index 100% rename from tests/files/append1.go rename to tests/files/append1.gno diff --git a/tests/files/append2.go b/tests/files/append2.gno similarity index 100% rename from tests/files/append2.go rename to tests/files/append2.gno diff --git a/tests/files/append3.go b/tests/files/append3.gno similarity index 100% rename from tests/files/append3.go rename to tests/files/append3.gno diff --git a/tests/files/append4.go b/tests/files/append4.gno similarity index 100% rename from tests/files/append4.go rename to tests/files/append4.gno diff --git a/tests/files/assign.go b/tests/files/assign.gno similarity index 100% rename from tests/files/assign.go rename to tests/files/assign.gno diff --git a/tests/files/assign0b.go b/tests/files/assign0b.gno similarity index 100% rename from tests/files/assign0b.go rename to tests/files/assign0b.gno diff --git a/tests/files/assign1.go b/tests/files/assign1.gno similarity index 100% rename from tests/files/assign1.go rename to tests/files/assign1.gno diff --git a/tests/files/assign10.go b/tests/files/assign10.gno similarity index 100% rename from tests/files/assign10.go rename to tests/files/assign10.gno diff --git a/tests/files/assign11.go b/tests/files/assign11.gno similarity index 100% rename from tests/files/assign11.go rename to tests/files/assign11.gno diff --git a/tests/files/assign12.go b/tests/files/assign12.gno similarity index 100% rename from tests/files/assign12.go rename to tests/files/assign12.gno diff --git a/tests/files/assign16.go b/tests/files/assign16.gno similarity index 100% rename from tests/files/assign16.go rename to tests/files/assign16.gno diff --git a/tests/files/assign2.go b/tests/files/assign2.gno similarity index 100% rename from tests/files/assign2.go rename to tests/files/assign2.gno diff --git a/tests/files/assign20.go b/tests/files/assign20.gno similarity index 100% rename from tests/files/assign20.go rename to tests/files/assign20.gno diff --git a/tests/files/assign21.go b/tests/files/assign21.gno similarity index 100% rename from tests/files/assign21.go rename to tests/files/assign21.gno diff --git a/tests/files/assign3.go b/tests/files/assign3.gno similarity index 100% rename from tests/files/assign3.go rename to tests/files/assign3.gno diff --git a/tests/files/assign4.go b/tests/files/assign4.gno similarity index 100% rename from tests/files/assign4.go rename to tests/files/assign4.gno diff --git a/tests/files/assign5.go b/tests/files/assign5.gno similarity index 100% rename from tests/files/assign5.go rename to tests/files/assign5.gno diff --git a/tests/files/assign8.go b/tests/files/assign8.gno similarity index 100% rename from tests/files/assign8.go rename to tests/files/assign8.gno diff --git a/tests/files/assign9.go b/tests/files/assign9.gno similarity index 100% rename from tests/files/assign9.go rename to tests/files/assign9.gno diff --git a/tests/files/avl0.go b/tests/files/avl0.gno similarity index 100% rename from tests/files/avl0.go rename to tests/files/avl0.gno diff --git a/tests/files/bin.go b/tests/files/bin.gno similarity index 100% rename from tests/files/bin.go rename to tests/files/bin.gno diff --git a/tests/files/bin0.go b/tests/files/bin0.gno similarity index 100% rename from tests/files/bin0.go rename to tests/files/bin0.gno diff --git a/tests/files/bin1.go b/tests/files/bin1.gno similarity index 100% rename from tests/files/bin1.go rename to tests/files/bin1.gno diff --git a/tests/files/bin3.go b/tests/files/bin3.gno similarity index 100% rename from tests/files/bin3.go rename to tests/files/bin3.gno diff --git a/tests/files/bin4.go b/tests/files/bin4.gno similarity index 100% rename from tests/files/bin4.go rename to tests/files/bin4.gno diff --git a/tests/files/bin5.go b/tests/files/bin5.gno similarity index 100% rename from tests/files/bin5.go rename to tests/files/bin5.gno diff --git a/tests/files/binstruct_ptr_map0.go b/tests/files/binstruct_ptr_map0.gno similarity index 100% rename from tests/files/binstruct_ptr_map0.go rename to tests/files/binstruct_ptr_map0.gno diff --git a/tests/files/binstruct_ptr_slice0.go b/tests/files/binstruct_ptr_slice0.gno similarity index 100% rename from tests/files/binstruct_ptr_slice0.go rename to tests/files/binstruct_ptr_slice0.gno diff --git a/tests/files/binstruct_slice0.go b/tests/files/binstruct_slice0.gno similarity index 100% rename from tests/files/binstruct_slice0.go rename to tests/files/binstruct_slice0.gno diff --git a/tests/files/bltn.go b/tests/files/bltn.gno similarity index 100% rename from tests/files/bltn.go rename to tests/files/bltn.gno diff --git a/tests/files/bltn0.go b/tests/files/bltn0.gno similarity index 100% rename from tests/files/bltn0.go rename to tests/files/bltn0.gno diff --git a/tests/files/bool.go b/tests/files/bool.gno similarity index 100% rename from tests/files/bool.go rename to tests/files/bool.gno diff --git a/tests/files/bool0.go b/tests/files/bool0.gno similarity index 100% rename from tests/files/bool0.go rename to tests/files/bool0.gno diff --git a/tests/files/bool1.go b/tests/files/bool1.gno similarity index 100% rename from tests/files/bool1.go rename to tests/files/bool1.gno diff --git a/tests/files/bool2.go b/tests/files/bool2.gno similarity index 100% rename from tests/files/bool2.go rename to tests/files/bool2.gno diff --git a/tests/files/bool3.go b/tests/files/bool3.gno similarity index 100% rename from tests/files/bool3.go rename to tests/files/bool3.gno diff --git a/tests/files/bool4.go b/tests/files/bool4.gno similarity index 100% rename from tests/files/bool4.go rename to tests/files/bool4.gno diff --git a/tests/files/bool5.go b/tests/files/bool5.gno similarity index 100% rename from tests/files/bool5.go rename to tests/files/bool5.gno diff --git a/tests/files/build0.go b/tests/files/build0.gno similarity index 71% rename from tests/files/build0.go rename to tests/files/build0.gno index 5c933e9d580..efa57126859 100644 --- a/tests/files/build0.go +++ b/tests/files/build0.gno @@ -1,5 +1,6 @@ // A test program +//go:build ((darwin && linux) || !arm) && (go1.12 || !go1.13) // +build darwin,linux !arm // +build go1.12 !go1.13 diff --git a/tests/files/cap0.go b/tests/files/cap0.gno similarity index 100% rename from tests/files/cap0.go rename to tests/files/cap0.gno diff --git a/tests/files/closure0.go b/tests/files/closure0.gno similarity index 100% rename from tests/files/closure0.go rename to tests/files/closure0.gno diff --git a/tests/files/closure1.go b/tests/files/closure1.gno similarity index 100% rename from tests/files/closure1.go rename to tests/files/closure1.gno diff --git a/tests/files/closure2.go b/tests/files/closure2.gno similarity index 100% rename from tests/files/closure2.go rename to tests/files/closure2.gno diff --git a/tests/files/closure3.go b/tests/files/closure3.gno similarity index 100% rename from tests/files/closure3.go rename to tests/files/closure3.gno diff --git a/tests/files/closure4.go b/tests/files/closure4.gno similarity index 100% rename from tests/files/closure4.go rename to tests/files/closure4.gno diff --git a/tests/files/closure5.go b/tests/files/closure5.gno similarity index 100% rename from tests/files/closure5.go rename to tests/files/closure5.gno diff --git a/tests/files/closure6.go b/tests/files/closure6.gno similarity index 100% rename from tests/files/closure6.go rename to tests/files/closure6.gno diff --git a/tests/files/closure7.go b/tests/files/closure7.gno similarity index 100% rename from tests/files/closure7.go rename to tests/files/closure7.gno diff --git a/tests/files/closure8.go b/tests/files/closure8.gno similarity index 100% rename from tests/files/closure8.go rename to tests/files/closure8.gno diff --git a/tests/files/comp1.go b/tests/files/comp1.gno similarity index 100% rename from tests/files/comp1.go rename to tests/files/comp1.gno diff --git a/tests/files/comp2.go b/tests/files/comp2.gno similarity index 100% rename from tests/files/comp2.go rename to tests/files/comp2.gno diff --git a/tests/files/composite0.go b/tests/files/composite0.gno similarity index 78% rename from tests/files/composite0.go rename to tests/files/composite0.gno index 679d1f0e652..ae518782902 100644 --- a/tests/files/composite0.go +++ b/tests/files/composite0.gno @@ -6,7 +6,7 @@ var a = &[]*T{} // NOTE: // lowercase fields don't work with native funcs. -// see tests/files/composite0b.go for gno println. +// see tests/files/composite0b.gno for gno println. type T struct{ Name string } func main() { diff --git a/tests/files/composite1.go b/tests/files/composite1.gno similarity index 78% rename from tests/files/composite1.go rename to tests/files/composite1.gno index 1448ead647f..8e3366a05b0 100644 --- a/tests/files/composite1.go +++ b/tests/files/composite1.gno @@ -6,7 +6,7 @@ var a = &[]*T{{}} // NOTE: // lowercase fields don't work with native funcs. -// see tests/files/composite1b.go for gno println. +// see tests/files/composite1b.gno for gno println. type T struct{ Name string } func main() { diff --git a/tests/files/composite10.go b/tests/files/composite10.gno similarity index 100% rename from tests/files/composite10.go rename to tests/files/composite10.gno diff --git a/tests/files/composite11.go b/tests/files/composite11.gno similarity index 100% rename from tests/files/composite11.go rename to tests/files/composite11.gno diff --git a/tests/files/composite12.go b/tests/files/composite12.gno similarity index 100% rename from tests/files/composite12.go rename to tests/files/composite12.gno diff --git a/tests/files/composite13.go b/tests/files/composite13.gno similarity index 100% rename from tests/files/composite13.go rename to tests/files/composite13.gno diff --git a/tests/files/composite14.go b/tests/files/composite14.gno similarity index 100% rename from tests/files/composite14.go rename to tests/files/composite14.gno diff --git a/tests/files/composite15.go b/tests/files/composite15.gno similarity index 100% rename from tests/files/composite15.go rename to tests/files/composite15.gno diff --git a/tests/files/composite16.go b/tests/files/composite16.gno similarity index 100% rename from tests/files/composite16.go rename to tests/files/composite16.gno diff --git a/tests/files/composite17.go b/tests/files/composite17.gno similarity index 100% rename from tests/files/composite17.go rename to tests/files/composite17.gno diff --git a/tests/files/composite2.go b/tests/files/composite2.gno similarity index 100% rename from tests/files/composite2.go rename to tests/files/composite2.gno diff --git a/tests/files/composite3.go b/tests/files/composite3.gno similarity index 100% rename from tests/files/composite3.go rename to tests/files/composite3.gno diff --git a/tests/files/composite4.go b/tests/files/composite4.gno similarity index 100% rename from tests/files/composite4.go rename to tests/files/composite4.gno diff --git a/tests/files/composite5.go b/tests/files/composite5.gno similarity index 100% rename from tests/files/composite5.go rename to tests/files/composite5.gno diff --git a/tests/files/composite6.go b/tests/files/composite6.gno similarity index 100% rename from tests/files/composite6.go rename to tests/files/composite6.gno diff --git a/tests/files/composite7.go b/tests/files/composite7.gno similarity index 100% rename from tests/files/composite7.go rename to tests/files/composite7.gno diff --git a/tests/files/composite8.go b/tests/files/composite8.gno similarity index 100% rename from tests/files/composite8.go rename to tests/files/composite8.gno diff --git a/tests/files/composite8bis.go b/tests/files/composite8bis.gno similarity index 100% rename from tests/files/composite8bis.go rename to tests/files/composite8bis.gno diff --git a/tests/files/composite9.go b/tests/files/composite9.gno similarity index 77% rename from tests/files/composite9.go rename to tests/files/composite9.gno index 83efa882b03..de95b9c7b55 100644 --- a/tests/files/composite9.go +++ b/tests/files/composite9.gno @@ -3,7 +3,7 @@ package main import "fmt" func main() { - a := [][]int{make([]int,0)} + a := [][]int{make([]int, 0)} for _, b := range a { fmt.Println(b) diff --git a/tests/files/const0.go b/tests/files/const0.gno similarity index 100% rename from tests/files/const0.go rename to tests/files/const0.gno diff --git a/tests/files/const1.go b/tests/files/const1.gno similarity index 100% rename from tests/files/const1.go rename to tests/files/const1.gno diff --git a/tests/files/const10.go b/tests/files/const10.gno similarity index 100% rename from tests/files/const10.go rename to tests/files/const10.gno diff --git a/tests/files/const11.go b/tests/files/const11.gno similarity index 100% rename from tests/files/const11.go rename to tests/files/const11.gno diff --git a/tests/files/const12.go b/tests/files/const12.gno similarity index 100% rename from tests/files/const12.go rename to tests/files/const12.gno diff --git a/tests/files/const13.go b/tests/files/const13.gno similarity index 100% rename from tests/files/const13.go rename to tests/files/const13.gno diff --git a/tests/files/const14.go b/tests/files/const14.gno similarity index 100% rename from tests/files/const14.go rename to tests/files/const14.gno diff --git a/tests/files/const15.go b/tests/files/const15.gno similarity index 100% rename from tests/files/const15.go rename to tests/files/const15.gno diff --git a/tests/files/const16.go b/tests/files/const16.gno similarity index 100% rename from tests/files/const16.go rename to tests/files/const16.gno diff --git a/tests/files/const17.go b/tests/files/const17.gno similarity index 64% rename from tests/files/const17.go rename to tests/files/const17.gno index 45d741a72f5..06a532ff47e 100644 --- a/tests/files/const17.go +++ b/tests/files/const17.gno @@ -2,11 +2,11 @@ package main import "fmt" -var t [7/3]int +var t [7 / 3]int func main() { - t[0] = 3/2 - t[1] = 5/2 + t[0] = 3 / 2 + t[1] = 5 / 2 fmt.Println(t) } diff --git a/tests/files/const18.go b/tests/files/const18.gno similarity index 100% rename from tests/files/const18.go rename to tests/files/const18.gno diff --git a/tests/files/const19.go b/tests/files/const19.gno similarity index 100% rename from tests/files/const19.go rename to tests/files/const19.gno diff --git a/tests/files/const2.go b/tests/files/const2.gno similarity index 100% rename from tests/files/const2.go rename to tests/files/const2.gno diff --git a/tests/files/const20.go b/tests/files/const20.gno similarity index 100% rename from tests/files/const20.go rename to tests/files/const20.gno diff --git a/tests/files/const21.go b/tests/files/const21.gno similarity index 100% rename from tests/files/const21.go rename to tests/files/const21.gno diff --git a/tests/files/const3.go b/tests/files/const3.gno similarity index 100% rename from tests/files/const3.go rename to tests/files/const3.gno diff --git a/tests/files/const4.go b/tests/files/const4.gno similarity index 100% rename from tests/files/const4.go rename to tests/files/const4.gno diff --git a/tests/files/const5.go b/tests/files/const5.gno similarity index 100% rename from tests/files/const5.go rename to tests/files/const5.gno diff --git a/tests/files/const6.go b/tests/files/const6.gno similarity index 100% rename from tests/files/const6.go rename to tests/files/const6.gno diff --git a/tests/files/const7.go b/tests/files/const7.gno similarity index 100% rename from tests/files/const7.go rename to tests/files/const7.gno diff --git a/tests/files/const8.go b/tests/files/const8.gno similarity index 100% rename from tests/files/const8.go rename to tests/files/const8.gno diff --git a/tests/files/const9.go b/tests/files/const9.gno similarity index 100% rename from tests/files/const9.go rename to tests/files/const9.gno diff --git a/tests/files/cont.go b/tests/files/cont.gno similarity index 100% rename from tests/files/cont.go rename to tests/files/cont.gno diff --git a/tests/files/cont0.go b/tests/files/cont0.gno similarity index 100% rename from tests/files/cont0.go rename to tests/files/cont0.gno diff --git a/tests/files/cont1.go b/tests/files/cont1.gno similarity index 100% rename from tests/files/cont1.go rename to tests/files/cont1.gno diff --git a/tests/files/context.go b/tests/files/context.gno similarity index 100% rename from tests/files/context.go rename to tests/files/context.gno diff --git a/tests/files/context2.go b/tests/files/context2.gno similarity index 100% rename from tests/files/context2.go rename to tests/files/context2.gno diff --git a/tests/files/convert0.go b/tests/files/convert0.gno similarity index 100% rename from tests/files/convert0.go rename to tests/files/convert0.gno diff --git a/tests/files/convert1.go b/tests/files/convert1.gno similarity index 100% rename from tests/files/convert1.go rename to tests/files/convert1.gno diff --git a/tests/files/convert3.go b/tests/files/convert3.gno similarity index 100% rename from tests/files/convert3.go rename to tests/files/convert3.gno diff --git a/tests/files/copy0.go b/tests/files/copy0.gno similarity index 100% rename from tests/files/copy0.go rename to tests/files/copy0.gno diff --git a/tests/files/copy1.go b/tests/files/copy1.gno similarity index 100% rename from tests/files/copy1.go rename to tests/files/copy1.gno diff --git a/tests/files/copy2.go b/tests/files/copy2.gno similarity index 100% rename from tests/files/copy2.go rename to tests/files/copy2.gno diff --git a/tests/files/defer0.go b/tests/files/defer0.gno similarity index 100% rename from tests/files/defer0.go rename to tests/files/defer0.gno diff --git a/tests/files/defer1.go b/tests/files/defer1.gno similarity index 100% rename from tests/files/defer1.go rename to tests/files/defer1.gno diff --git a/tests/files/defer2.go b/tests/files/defer2.gno similarity index 100% rename from tests/files/defer2.go rename to tests/files/defer2.gno diff --git a/tests/files/defer3.go b/tests/files/defer3.gno similarity index 100% rename from tests/files/defer3.go rename to tests/files/defer3.gno diff --git a/tests/files/defer4.go b/tests/files/defer4.gno similarity index 100% rename from tests/files/defer4.go rename to tests/files/defer4.gno diff --git a/tests/files/defer5.go b/tests/files/defer5.gno similarity index 100% rename from tests/files/defer5.go rename to tests/files/defer5.gno diff --git a/tests/files/defer6.go b/tests/files/defer6.gno similarity index 100% rename from tests/files/defer6.go rename to tests/files/defer6.gno diff --git a/tests/files/defer7.go b/tests/files/defer7.gno similarity index 100% rename from tests/files/defer7.go rename to tests/files/defer7.gno diff --git a/tests/files/defer8.go b/tests/files/defer8.gno similarity index 100% rename from tests/files/defer8.go rename to tests/files/defer8.gno diff --git a/tests/files/define0.go b/tests/files/define0.gno similarity index 100% rename from tests/files/define0.go rename to tests/files/define0.gno diff --git a/tests/files/define1.go b/tests/files/define1.gno similarity index 100% rename from tests/files/define1.go rename to tests/files/define1.gno diff --git a/tests/files/define2.go b/tests/files/define2.gno similarity index 100% rename from tests/files/define2.go rename to tests/files/define2.gno diff --git a/tests/files/define3.go b/tests/files/define3.gno similarity index 100% rename from tests/files/define3.go rename to tests/files/define3.gno diff --git a/tests/files/define4.go b/tests/files/define4.gno similarity index 100% rename from tests/files/define4.go rename to tests/files/define4.gno diff --git a/tests/files/delete0.go b/tests/files/delete0.gno similarity index 100% rename from tests/files/delete0.go rename to tests/files/delete0.gno diff --git a/tests/files/errors.go b/tests/files/errors.gno similarity index 100% rename from tests/files/errors.go rename to tests/files/errors.gno diff --git a/tests/files/extern/b1/foo/foo.go b/tests/files/extern/b1/foo/foo.gno similarity index 100% rename from tests/files/extern/b1/foo/foo.go rename to tests/files/extern/b1/foo/foo.gno diff --git a/tests/files/extern/b2/foo/foo.go b/tests/files/extern/b2/foo/foo.gno similarity index 100% rename from tests/files/extern/b2/foo/foo.go rename to tests/files/extern/b2/foo/foo.gno diff --git a/tests/files/extern/bar/quux.go b/tests/files/extern/bar/quux.gno similarity index 100% rename from tests/files/extern/bar/quux.go rename to tests/files/extern/bar/quux.gno diff --git a/tests/files/extern/baz-bat/baz-bat.go b/tests/files/extern/baz-bat/baz-bat.gno similarity index 100% rename from tests/files/extern/baz-bat/baz-bat.go rename to tests/files/extern/baz-bat/baz-bat.gno diff --git a/tests/files/extern/baz/quux.go b/tests/files/extern/baz/quux.gno similarity index 100% rename from tests/files/extern/baz/quux.go rename to tests/files/extern/baz/quux.gno diff --git a/tests/files/extern/c1/c1.go b/tests/files/extern/c1/c1.gno similarity index 100% rename from tests/files/extern/c1/c1.go rename to tests/files/extern/c1/c1.gno diff --git a/tests/files/extern/c2/c2.go b/tests/files/extern/c2/c2.gno similarity index 100% rename from tests/files/extern/c2/c2.go rename to tests/files/extern/c2/c2.gno diff --git a/tests/files/extern/context/context.go b/tests/files/extern/context/context.gno similarity index 100% rename from tests/files/extern/context/context.go rename to tests/files/extern/context/context.gno diff --git a/tests/files/extern/ct/ct1.go b/tests/files/extern/ct/ct1.gno similarity index 100% rename from tests/files/extern/ct/ct1.go rename to tests/files/extern/ct/ct1.gno diff --git a/tests/files/extern/ct/ct2.go b/tests/files/extern/ct/ct2.gno similarity index 80% rename from tests/files/extern/ct/ct2.go rename to tests/files/extern/ct/ct2.gno index c290630f6f4..19c1dd7434b 100644 --- a/tests/files/extern/ct/ct2.go +++ b/tests/files/extern/ct/ct2.gno @@ -1,3 +1,4 @@ +//go:build !dummy // +build !dummy package ct diff --git a/tests/files/extern/ct/ct3.go b/tests/files/extern/ct/ct3.gno similarity index 80% rename from tests/files/extern/ct/ct3.go rename to tests/files/extern/ct/ct3.gno index 25584223cf0..a65632e9c94 100644 --- a/tests/files/extern/ct/ct3.go +++ b/tests/files/extern/ct/ct3.gno @@ -1,3 +1,4 @@ +//go:build dummy // +build dummy package ct diff --git a/tests/files/extern/ct1/ct1.go b/tests/files/extern/ct1/ct1.gno similarity index 100% rename from tests/files/extern/ct1/ct1.go rename to tests/files/extern/ct1/ct1.gno diff --git a/tests/files/extern/foo-bar/foo-bar.go b/tests/files/extern/foo-bar/foo-bar.gno similarity index 100% rename from tests/files/extern/foo-bar/foo-bar.go rename to tests/files/extern/foo-bar/foo-bar.gno diff --git a/tests/files/extern/foo/bar.go b/tests/files/extern/foo/bar.gno similarity index 100% rename from tests/files/extern/foo/bar.go rename to tests/files/extern/foo/bar.gno diff --git a/tests/files/extern/foo/bir.go b/tests/files/extern/foo/bir.gno similarity index 100% rename from tests/files/extern/foo/bir.go rename to tests/files/extern/foo/bir.gno diff --git a/tests/files/extern/foo/boo/boo.go b/tests/files/extern/foo/boo/boo.gno similarity index 100% rename from tests/files/extern/foo/boo/boo.go rename to tests/files/extern/foo/boo/boo.gno diff --git a/tests/files/extern/m1/main.go b/tests/files/extern/m1/main.gno similarity index 100% rename from tests/files/extern/m1/main.go rename to tests/files/extern/m1/main.gno diff --git a/tests/files/extern/m1/main_test.go b/tests/files/extern/m1/main_test.gno similarity index 100% rename from tests/files/extern/m1/main_test.go rename to tests/files/extern/m1/main_test.gno diff --git a/tests/files/extern/m2/m2_test.go b/tests/files/extern/m2/m2_test.gno similarity index 100% rename from tests/files/extern/m2/m2_test.go rename to tests/files/extern/m2/m2_test.gno diff --git a/tests/files/extern/net/http/http.go b/tests/files/extern/net/http/http.gno similarity index 100% rename from tests/files/extern/net/http/http.go rename to tests/files/extern/net/http/http.gno diff --git a/tests/files/extern/net/http/httptest/httptest.go b/tests/files/extern/net/http/httptest/httptest.gno similarity index 100% rename from tests/files/extern/net/http/httptest/httptest.go rename to tests/files/extern/net/http/httptest/httptest.gno diff --git a/tests/files/extern/net/net.go b/tests/files/extern/net/net.gno similarity index 100% rename from tests/files/extern/net/net.go rename to tests/files/extern/net/net.gno diff --git a/tests/files/extern/net/url/url.go b/tests/files/extern/net/url/url.gno similarity index 100% rename from tests/files/extern/net/url/url.go rename to tests/files/extern/net/url/url.gno diff --git a/tests/files/extern/p1/s1.go b/tests/files/extern/p1/s1.gno similarity index 100% rename from tests/files/extern/p1/s1.go rename to tests/files/extern/p1/s1.gno diff --git a/tests/files/extern/p1/s2.go b/tests/files/extern/p1/s2.gno similarity index 100% rename from tests/files/extern/p1/s2.go rename to tests/files/extern/p1/s2.gno diff --git a/tests/files/extern/tata/tutu.go b/tests/files/extern/tata/tutu.gno similarity index 100% rename from tests/files/extern/tata/tutu.go rename to tests/files/extern/tata/tutu.gno diff --git a/tests/files/extern/time/time.go b/tests/files/extern/time/time.gno similarity index 100% rename from tests/files/extern/time/time.go rename to tests/files/extern/time/time.gno diff --git a/tests/files/extern/timtadh/data-structures/tree/avl/avltree.go b/tests/files/extern/timtadh/data-structures/tree/avl/avltree.gno similarity index 100% rename from tests/files/extern/timtadh/data-structures/tree/avl/avltree.go rename to tests/files/extern/timtadh/data-structures/tree/avl/avltree.gno diff --git a/tests/files/extern/timtadh/data-structures/tree/utils.go b/tests/files/extern/timtadh/data-structures/tree/utils.gno similarity index 99% rename from tests/files/extern/timtadh/data-structures/tree/utils.go rename to tests/files/extern/timtadh/data-structures/tree/utils.gno index d28caefec8d..1cba11f6753 100644 --- a/tests/files/extern/timtadh/data-structures/tree/utils.go +++ b/tests/files/extern/timtadh/data-structures/tree/utils.gno @@ -1,4 +1,4 @@ -// from https://raw.githubusercontent.com/timtadh/data-structures/master/tree/util.go +// from https://raw.githubusercontent.com/timtadh/data-structures/master/tree/util.gno package tree diff --git a/tests/files/extern/timtadh/data-structures/types/map_entry.go b/tests/files/extern/timtadh/data-structures/types/map_entry.gno similarity index 100% rename from tests/files/extern/timtadh/data-structures/types/map_entry.go rename to tests/files/extern/timtadh/data-structures/types/map_entry.gno diff --git a/tests/files/extern/timtadh/data-structures/types/string.go b/tests/files/extern/timtadh/data-structures/types/string.gno similarity index 100% rename from tests/files/extern/timtadh/data-structures/types/string.go rename to tests/files/extern/timtadh/data-structures/types/string.gno diff --git a/tests/files2/extern/timtadh/data-structures/types/types.go b/tests/files/extern/timtadh/data-structures/types/types.gno similarity index 99% rename from tests/files2/extern/timtadh/data-structures/types/types.go rename to tests/files/extern/timtadh/data-structures/types/types.gno index bb88e8d0add..90a69e969ac 100644 --- a/tests/files2/extern/timtadh/data-structures/types/types.go +++ b/tests/files/extern/timtadh/data-structures/types/types.gno @@ -1,4 +1,4 @@ -// from https://raw.githubusercontent.com/timtadh/data-structures/master/types/types.go +// from https://raw.githubusercontent.com/timtadh/data-structures/master/types/types.gno package types diff --git a/tests/files/extern/timtadh/data-structures/types/util.go b/tests/files/extern/timtadh/data-structures/types/util.gno similarity index 100% rename from tests/files/extern/timtadh/data-structures/types/util.go rename to tests/files/extern/timtadh/data-structures/types/util.gno diff --git a/tests/files/extern/toto/titi.go b/tests/files/extern/toto/titi.gno similarity index 100% rename from tests/files/extern/toto/titi.go rename to tests/files/extern/toto/titi.gno diff --git a/tests/files/extern/vars/first.go b/tests/files/extern/vars/first.gno similarity index 100% rename from tests/files/extern/vars/first.go rename to tests/files/extern/vars/first.gno diff --git a/tests/files/extern/vars/second.go b/tests/files/extern/vars/second.gno similarity index 100% rename from tests/files/extern/vars/second.go rename to tests/files/extern/vars/second.gno diff --git a/tests/files/fib0.go b/tests/files/fib0.gno similarity index 100% rename from tests/files/fib0.go rename to tests/files/fib0.gno diff --git a/tests/files/for0.go b/tests/files/for0.gno similarity index 100% rename from tests/files/for0.go rename to tests/files/for0.gno diff --git a/tests/files/for1.go b/tests/files/for1.gno similarity index 100% rename from tests/files/for1.go rename to tests/files/for1.gno diff --git a/tests/files/for10.go b/tests/files/for10.gno similarity index 100% rename from tests/files/for10.go rename to tests/files/for10.gno diff --git a/tests/files/for11.go b/tests/files/for11.gno similarity index 100% rename from tests/files/for11.go rename to tests/files/for11.gno diff --git a/tests/files/for12.go b/tests/files/for12.gno similarity index 100% rename from tests/files/for12.go rename to tests/files/for12.gno diff --git a/tests/files/for13.go b/tests/files/for13.gno similarity index 100% rename from tests/files/for13.go rename to tests/files/for13.gno diff --git a/tests/files/for14.go b/tests/files/for14.gno similarity index 100% rename from tests/files/for14.go rename to tests/files/for14.gno diff --git a/tests/files/for15.go b/tests/files/for15.gno similarity index 100% rename from tests/files/for15.go rename to tests/files/for15.gno diff --git a/tests/files/for16.go b/tests/files/for16.gno similarity index 100% rename from tests/files/for16.go rename to tests/files/for16.gno diff --git a/tests/files/for17.go b/tests/files/for17.gno similarity index 100% rename from tests/files/for17.go rename to tests/files/for17.gno diff --git a/tests/files/for18.go b/tests/files/for18.gno similarity index 100% rename from tests/files/for18.go rename to tests/files/for18.gno diff --git a/tests/files/for2.go b/tests/files/for2.gno similarity index 100% rename from tests/files/for2.go rename to tests/files/for2.gno diff --git a/tests/files/for3.go b/tests/files/for3.gno similarity index 100% rename from tests/files/for3.go rename to tests/files/for3.gno diff --git a/tests/files/for4.go b/tests/files/for4.gno similarity index 100% rename from tests/files/for4.go rename to tests/files/for4.gno diff --git a/tests/files/for5.go b/tests/files/for5.gno similarity index 100% rename from tests/files/for5.go rename to tests/files/for5.gno diff --git a/tests/files/for6.go b/tests/files/for6.gno similarity index 100% rename from tests/files/for6.go rename to tests/files/for6.gno diff --git a/tests/files/for7.go b/tests/files/for7.gno similarity index 100% rename from tests/files/for7.go rename to tests/files/for7.gno diff --git a/tests/files/for8.go b/tests/files/for8.gno similarity index 100% rename from tests/files/for8.go rename to tests/files/for8.gno diff --git a/tests/files/for9.go b/tests/files/for9.gno similarity index 100% rename from tests/files/for9.go rename to tests/files/for9.gno diff --git a/tests/files/fun.go b/tests/files/fun.gno similarity index 100% rename from tests/files/fun.go rename to tests/files/fun.gno diff --git a/tests/files/fun10.go b/tests/files/fun10.gno similarity index 100% rename from tests/files/fun10.go rename to tests/files/fun10.gno diff --git a/tests/files/fun11.go b/tests/files/fun11.gno similarity index 100% rename from tests/files/fun11.go rename to tests/files/fun11.gno diff --git a/tests/files/fun12.go b/tests/files/fun12.gno similarity index 100% rename from tests/files/fun12.go rename to tests/files/fun12.gno diff --git a/tests/files/fun13.go b/tests/files/fun13.gno similarity index 100% rename from tests/files/fun13.go rename to tests/files/fun13.gno diff --git a/tests/files/fun14.go b/tests/files/fun14.gno similarity index 100% rename from tests/files/fun14.go rename to tests/files/fun14.gno diff --git a/tests/files/fun15.go b/tests/files/fun15.gno similarity index 100% rename from tests/files/fun15.go rename to tests/files/fun15.gno diff --git a/tests/files/fun16.go b/tests/files/fun16.gno similarity index 100% rename from tests/files/fun16.go rename to tests/files/fun16.gno diff --git a/tests/files/fun17.go b/tests/files/fun17.gno similarity index 100% rename from tests/files/fun17.go rename to tests/files/fun17.gno diff --git a/tests/files/fun18.go b/tests/files/fun18.gno similarity index 100% rename from tests/files/fun18.go rename to tests/files/fun18.gno diff --git a/tests/files/fun19b.go b/tests/files/fun19b.gno similarity index 100% rename from tests/files/fun19b.go rename to tests/files/fun19b.gno diff --git a/tests/files/fun2.go b/tests/files/fun2.gno similarity index 100% rename from tests/files/fun2.go rename to tests/files/fun2.gno diff --git a/tests/files/fun20b.go b/tests/files/fun20b.gno similarity index 100% rename from tests/files/fun20b.go rename to tests/files/fun20b.gno diff --git a/tests/files/fun21.go b/tests/files/fun21.gno similarity index 100% rename from tests/files/fun21.go rename to tests/files/fun21.gno diff --git a/tests/files/fun22.go b/tests/files/fun22.gno similarity index 100% rename from tests/files/fun22.go rename to tests/files/fun22.gno diff --git a/tests/files/fun23.go b/tests/files/fun23.gno similarity index 100% rename from tests/files/fun23.go rename to tests/files/fun23.gno diff --git a/tests/files/fun24.go b/tests/files/fun24.gno similarity index 100% rename from tests/files/fun24.go rename to tests/files/fun24.gno diff --git a/tests/files/fun25.go b/tests/files/fun25.gno similarity index 100% rename from tests/files/fun25.go rename to tests/files/fun25.gno diff --git a/tests/files/fun26.go b/tests/files/fun26.gno similarity index 100% rename from tests/files/fun26.go rename to tests/files/fun26.gno diff --git a/tests/files/fun3.go b/tests/files/fun3.gno similarity index 100% rename from tests/files/fun3.go rename to tests/files/fun3.gno diff --git a/tests/files/fun4.go b/tests/files/fun4.gno similarity index 100% rename from tests/files/fun4.go rename to tests/files/fun4.gno diff --git a/tests/files/fun5.go b/tests/files/fun5.gno similarity index 100% rename from tests/files/fun5.go rename to tests/files/fun5.gno diff --git a/tests/files/fun6.go b/tests/files/fun6.gno similarity index 100% rename from tests/files/fun6.go rename to tests/files/fun6.gno diff --git a/tests/files/fun6b.go b/tests/files/fun6b.gno similarity index 100% rename from tests/files/fun6b.go rename to tests/files/fun6b.gno diff --git a/tests/files/fun7.go b/tests/files/fun7.gno similarity index 100% rename from tests/files/fun7.go rename to tests/files/fun7.gno diff --git a/tests/files/fun8.go b/tests/files/fun8.gno similarity index 100% rename from tests/files/fun8.go rename to tests/files/fun8.gno diff --git a/tests/files/fun9.go b/tests/files/fun9.gno similarity index 100% rename from tests/files/fun9.go rename to tests/files/fun9.gno diff --git a/tests/files/goto0.go b/tests/files/goto0.gno similarity index 100% rename from tests/files/goto0.go rename to tests/files/goto0.gno diff --git a/tests/files/goto1.go b/tests/files/goto1.gno similarity index 100% rename from tests/files/goto1.go rename to tests/files/goto1.gno diff --git a/tests/files/goto2.go b/tests/files/goto2.gno similarity index 100% rename from tests/files/goto2.go rename to tests/files/goto2.gno diff --git a/tests/files/goto3.go b/tests/files/goto3.gno similarity index 100% rename from tests/files/goto3.go rename to tests/files/goto3.gno diff --git a/tests/files/goto3a.go b/tests/files/goto3a.gno similarity index 100% rename from tests/files/goto3a.go rename to tests/files/goto3a.gno diff --git a/tests/files/goto4.go b/tests/files/goto4.gno similarity index 100% rename from tests/files/goto4.go rename to tests/files/goto4.gno diff --git a/tests/files/goto5.go b/tests/files/goto5.gno similarity index 100% rename from tests/files/goto5.go rename to tests/files/goto5.gno diff --git a/tests/files/goto6.go b/tests/files/goto6.gno similarity index 100% rename from tests/files/goto6.go rename to tests/files/goto6.gno diff --git a/tests/files/if.go b/tests/files/if.gno similarity index 100% rename from tests/files/if.go rename to tests/files/if.gno diff --git a/tests/files/if0.go b/tests/files/if0.gno similarity index 100% rename from tests/files/if0.go rename to tests/files/if0.gno diff --git a/tests/files/if1.go b/tests/files/if1.gno similarity index 100% rename from tests/files/if1.go rename to tests/files/if1.gno diff --git a/tests/files/if2.go b/tests/files/if2.gno similarity index 100% rename from tests/files/if2.go rename to tests/files/if2.gno diff --git a/tests/files/if3.go b/tests/files/if3.gno similarity index 100% rename from tests/files/if3.go rename to tests/files/if3.gno diff --git a/tests/files/if4.go b/tests/files/if4.gno similarity index 100% rename from tests/files/if4.go rename to tests/files/if4.gno diff --git a/tests/files/if5.go b/tests/files/if5.gno similarity index 100% rename from tests/files/if5.go rename to tests/files/if5.gno diff --git a/tests/files/if6.go b/tests/files/if6.gno similarity index 100% rename from tests/files/if6.go rename to tests/files/if6.gno diff --git a/tests/files/if7.go b/tests/files/if7.gno similarity index 91% rename from tests/files/if7.go rename to tests/files/if7.gno index b5d14495b63..b3e4fb31d88 100644 --- a/tests/files/if7.go +++ b/tests/files/if7.gno @@ -3,7 +3,7 @@ package main func main() { a := 0 b := false - if (b) { + if b { a = 1 } else { a = -1 diff --git a/tests/files/import0.go b/tests/files/import0.gno similarity index 100% rename from tests/files/import0.go rename to tests/files/import0.gno diff --git a/tests/files/import1.go b/tests/files/import1.gno similarity index 100% rename from tests/files/import1.go rename to tests/files/import1.gno diff --git a/tests/files/import10.go b/tests/files/import10.gno similarity index 100% rename from tests/files/import10.go rename to tests/files/import10.gno diff --git a/tests/files/import3.go b/tests/files/import3.gno similarity index 100% rename from tests/files/import3.go rename to tests/files/import3.gno diff --git a/tests/files/import4.go b/tests/files/import4.gno similarity index 100% rename from tests/files/import4.go rename to tests/files/import4.gno diff --git a/tests/files/import5.go b/tests/files/import5.gno similarity index 100% rename from tests/files/import5.go rename to tests/files/import5.gno diff --git a/tests/files/import6.go b/tests/files/import6.gno similarity index 100% rename from tests/files/import6.go rename to tests/files/import6.gno diff --git a/tests/files/import7.go b/tests/files/import7.gno similarity index 100% rename from tests/files/import7.go rename to tests/files/import7.gno diff --git a/tests/files/import8.go b/tests/files/import8.gno similarity index 100% rename from tests/files/import8.go rename to tests/files/import8.gno diff --git a/tests/files/import9.go b/tests/files/import9.gno similarity index 100% rename from tests/files/import9.go rename to tests/files/import9.gno diff --git a/tests/files/inc.go b/tests/files/inc.gno similarity index 100% rename from tests/files/inc.go rename to tests/files/inc.gno diff --git a/tests/files/index0.go b/tests/files/index0.gno similarity index 100% rename from tests/files/index0.go rename to tests/files/index0.gno diff --git a/tests/files/init0.go b/tests/files/init0.gno similarity index 100% rename from tests/files/init0.go rename to tests/files/init0.gno diff --git a/tests/files/init1.go b/tests/files/init1.gno similarity index 100% rename from tests/files/init1.go rename to tests/files/init1.gno diff --git a/tests/files/interface0.go b/tests/files/interface0.gno similarity index 100% rename from tests/files/interface0.go rename to tests/files/interface0.gno diff --git a/tests/files/interface1.go b/tests/files/interface1.gno similarity index 100% rename from tests/files/interface1.go rename to tests/files/interface1.gno diff --git a/tests/files/interface10.go b/tests/files/interface10.gno similarity index 100% rename from tests/files/interface10.go rename to tests/files/interface10.gno diff --git a/tests/files/interface11.go b/tests/files/interface11.gno similarity index 100% rename from tests/files/interface11.go rename to tests/files/interface11.gno diff --git a/tests/files/interface12.go b/tests/files/interface12.gno similarity index 100% rename from tests/files/interface12.go rename to tests/files/interface12.gno diff --git a/tests/files/interface13.go b/tests/files/interface13.gno similarity index 100% rename from tests/files/interface13.go rename to tests/files/interface13.gno diff --git a/tests/files/interface14.go b/tests/files/interface14.gno similarity index 100% rename from tests/files/interface14.go rename to tests/files/interface14.gno diff --git a/tests/files/interface15.go b/tests/files/interface15.gno similarity index 100% rename from tests/files/interface15.go rename to tests/files/interface15.gno diff --git a/tests/files/interface16.go b/tests/files/interface16.gno similarity index 100% rename from tests/files/interface16.go rename to tests/files/interface16.gno diff --git a/tests/files/interface17.go b/tests/files/interface17.gno similarity index 100% rename from tests/files/interface17.go rename to tests/files/interface17.gno diff --git a/tests/files/interface18.go b/tests/files/interface18.gno similarity index 100% rename from tests/files/interface18.go rename to tests/files/interface18.gno diff --git a/tests/files/interface19.go b/tests/files/interface19.gno similarity index 100% rename from tests/files/interface19.go rename to tests/files/interface19.gno diff --git a/tests/files/interface2.go b/tests/files/interface2.gno similarity index 100% rename from tests/files/interface2.go rename to tests/files/interface2.gno diff --git a/tests/files/interface20.go b/tests/files/interface20.gno similarity index 100% rename from tests/files/interface20.go rename to tests/files/interface20.gno diff --git a/tests/files/interface21.go b/tests/files/interface21.gno similarity index 100% rename from tests/files/interface21.go rename to tests/files/interface21.gno diff --git a/tests/files/interface22.go b/tests/files/interface22.gno similarity index 100% rename from tests/files/interface22.go rename to tests/files/interface22.gno diff --git a/tests/files/interface23.go b/tests/files/interface23.gno similarity index 100% rename from tests/files/interface23.go rename to tests/files/interface23.gno diff --git a/tests/files/interface24.go b/tests/files/interface24.gno similarity index 100% rename from tests/files/interface24.go rename to tests/files/interface24.gno diff --git a/tests/files/interface25.go b/tests/files/interface25.gno similarity index 100% rename from tests/files/interface25.go rename to tests/files/interface25.gno diff --git a/tests/files/interface26.go b/tests/files/interface26.gno similarity index 100% rename from tests/files/interface26.go rename to tests/files/interface26.gno diff --git a/tests/files/interface27b.go b/tests/files/interface27b.gno similarity index 100% rename from tests/files/interface27b.go rename to tests/files/interface27b.gno diff --git a/tests/files/interface28b.go b/tests/files/interface28b.gno similarity index 100% rename from tests/files/interface28b.go rename to tests/files/interface28b.gno diff --git a/tests/files/interface29.go b/tests/files/interface29.gno similarity index 100% rename from tests/files/interface29.go rename to tests/files/interface29.gno diff --git a/tests/files/interface3.go b/tests/files/interface3.gno similarity index 100% rename from tests/files/interface3.go rename to tests/files/interface3.gno diff --git a/tests/files/interface30.go b/tests/files/interface30.gno similarity index 100% rename from tests/files/interface30.go rename to tests/files/interface30.gno diff --git a/tests/files/interface31.go b/tests/files/interface31.gno similarity index 100% rename from tests/files/interface31.go rename to tests/files/interface31.gno diff --git a/tests/files/interface32.go b/tests/files/interface32.gno similarity index 100% rename from tests/files/interface32.go rename to tests/files/interface32.gno diff --git a/tests/files/interface33.go b/tests/files/interface33.gno similarity index 100% rename from tests/files/interface33.go rename to tests/files/interface33.gno diff --git a/tests/files/interface34.go b/tests/files/interface34.gno similarity index 100% rename from tests/files/interface34.go rename to tests/files/interface34.gno diff --git a/tests/files/interface35.go b/tests/files/interface35.gno similarity index 100% rename from tests/files/interface35.go rename to tests/files/interface35.gno diff --git a/tests/files/interface36.go b/tests/files/interface36.gno similarity index 100% rename from tests/files/interface36.go rename to tests/files/interface36.gno diff --git a/tests/files/interface37.go b/tests/files/interface37.gno similarity index 100% rename from tests/files/interface37.go rename to tests/files/interface37.gno diff --git a/tests/files/interface38b.go b/tests/files/interface38b.gno similarity index 100% rename from tests/files/interface38b.go rename to tests/files/interface38b.gno diff --git a/tests/files/interface39b.go b/tests/files/interface39b.gno similarity index 100% rename from tests/files/interface39b.go rename to tests/files/interface39b.gno diff --git a/tests/files/interface4.go b/tests/files/interface4.gno similarity index 100% rename from tests/files/interface4.go rename to tests/files/interface4.gno diff --git a/tests/files/interface40b.go b/tests/files/interface40b.gno similarity index 100% rename from tests/files/interface40b.go rename to tests/files/interface40b.gno diff --git a/tests/files/interface41b.go b/tests/files/interface41b.gno similarity index 100% rename from tests/files/interface41b.go rename to tests/files/interface41b.gno diff --git a/tests/files/interface42.go b/tests/files/interface42.gno similarity index 100% rename from tests/files/interface42.go rename to tests/files/interface42.gno diff --git a/tests/files/interface43.go b/tests/files/interface43.gno similarity index 100% rename from tests/files/interface43.go rename to tests/files/interface43.gno diff --git a/tests/files/interface44.go b/tests/files/interface44.gno similarity index 100% rename from tests/files/interface44.go rename to tests/files/interface44.gno diff --git a/tests/files/interface45.go b/tests/files/interface45.gno similarity index 100% rename from tests/files/interface45.go rename to tests/files/interface45.gno diff --git a/tests/files/interface46.go b/tests/files/interface46.gno similarity index 100% rename from tests/files/interface46.go rename to tests/files/interface46.gno diff --git a/tests/files/interface5.go b/tests/files/interface5.gno similarity index 100% rename from tests/files/interface5.go rename to tests/files/interface5.gno diff --git a/tests/files/interface6.go b/tests/files/interface6.gno similarity index 100% rename from tests/files/interface6.go rename to tests/files/interface6.gno diff --git a/tests/files/interface7b.go b/tests/files/interface7b.gno similarity index 100% rename from tests/files/interface7b.go rename to tests/files/interface7b.gno diff --git a/tests/files/interface8.go b/tests/files/interface8.gno similarity index 100% rename from tests/files/interface8.go rename to tests/files/interface8.gno diff --git a/tests/files/interface9b.go b/tests/files/interface9b.gno similarity index 100% rename from tests/files/interface9b.go rename to tests/files/interface9b.gno diff --git a/tests/files/io0.go b/tests/files/io0.gno similarity index 100% rename from tests/files/io0.go rename to tests/files/io0.gno diff --git a/tests/files/io1.go b/tests/files/io1.gno similarity index 100% rename from tests/files/io1.go rename to tests/files/io1.gno diff --git a/tests/files/iota.go b/tests/files/iota.gno similarity index 100% rename from tests/files/iota.go rename to tests/files/iota.gno diff --git a/tests/files/iota0.go b/tests/files/iota0.gno similarity index 100% rename from tests/files/iota0.go rename to tests/files/iota0.gno diff --git a/tests/files/ioutil0.go b/tests/files/ioutil0.gno similarity index 100% rename from tests/files/ioutil0.go rename to tests/files/ioutil0.gno diff --git a/tests/files/ipp_as_key.go b/tests/files/ipp_as_key.gno similarity index 100% rename from tests/files/ipp_as_key.go rename to tests/files/ipp_as_key.gno diff --git a/tests/files/issue-558b.go b/tests/files/issue-558b.gno similarity index 100% rename from tests/files/issue-558b.go rename to tests/files/issue-558b.gno diff --git a/tests/files/issue-735.go b/tests/files/issue-735.gno similarity index 100% rename from tests/files/issue-735.go rename to tests/files/issue-735.gno diff --git a/tests/files/issue-776.go b/tests/files/issue-776.gno similarity index 100% rename from tests/files/issue-776.go rename to tests/files/issue-776.gno diff --git a/tests/files/issue-782.go b/tests/files/issue-782.gno similarity index 100% rename from tests/files/issue-782.go rename to tests/files/issue-782.gno diff --git a/tests/files/issue-784.go b/tests/files/issue-784.gno similarity index 100% rename from tests/files/issue-784.go rename to tests/files/issue-784.gno diff --git a/tests/files/issue-880.go b/tests/files/issue-880.gno similarity index 100% rename from tests/files/issue-880.go rename to tests/files/issue-880.gno diff --git a/tests/files/l2_long.go b/tests/files/l2_long.gno similarity index 100% rename from tests/files/l2_long.go rename to tests/files/l2_long.gno diff --git a/tests/files/l3_long.go b/tests/files/l3_long.gno similarity index 100% rename from tests/files/l3_long.go rename to tests/files/l3_long.gno diff --git a/tests/files/l4_long.go b/tests/files/l4_long.gno similarity index 100% rename from tests/files/l4_long.go rename to tests/files/l4_long.gno diff --git a/tests/files/l5_long.go b/tests/files/l5_long.gno similarity index 100% rename from tests/files/l5_long.go rename to tests/files/l5_long.gno diff --git a/tests/files/len0.go b/tests/files/len0.gno similarity index 100% rename from tests/files/len0.go rename to tests/files/len0.gno diff --git a/tests/files/make0.go b/tests/files/make0.gno similarity index 100% rename from tests/files/make0.go rename to tests/files/make0.gno diff --git a/tests/files/make1.go b/tests/files/make1.gno similarity index 100% rename from tests/files/make1.go rename to tests/files/make1.gno diff --git a/tests/files/make2.go b/tests/files/make2.gno similarity index 100% rename from tests/files/make2.go rename to tests/files/make2.gno diff --git a/tests/files/map.go b/tests/files/map.gno similarity index 100% rename from tests/files/map.go rename to tests/files/map.gno diff --git a/tests/files/map10.go b/tests/files/map10.gno similarity index 100% rename from tests/files/map10.go rename to tests/files/map10.gno diff --git a/tests/files/map11.go b/tests/files/map11.gno similarity index 100% rename from tests/files/map11.go rename to tests/files/map11.gno diff --git a/tests/files/map12.go b/tests/files/map12.gno similarity index 100% rename from tests/files/map12.go rename to tests/files/map12.gno diff --git a/tests/files/map13.go b/tests/files/map13.gno similarity index 100% rename from tests/files/map13.go rename to tests/files/map13.gno diff --git a/tests/files/map14b.go b/tests/files/map14b.gno similarity index 100% rename from tests/files/map14b.go rename to tests/files/map14b.gno diff --git a/tests/files/map15.go b/tests/files/map15.gno similarity index 100% rename from tests/files/map15.go rename to tests/files/map15.gno diff --git a/tests/files/map16.go b/tests/files/map16.gno similarity index 100% rename from tests/files/map16.go rename to tests/files/map16.gno diff --git a/tests/files/map17.go b/tests/files/map17.gno similarity index 100% rename from tests/files/map17.go rename to tests/files/map17.gno diff --git a/tests/files/map18.go b/tests/files/map18.gno similarity index 100% rename from tests/files/map18.go rename to tests/files/map18.gno diff --git a/tests/files/map19b.go b/tests/files/map19b.gno similarity index 100% rename from tests/files/map19b.go rename to tests/files/map19b.gno diff --git a/tests/files/map2.go b/tests/files/map2.gno similarity index 100% rename from tests/files/map2.go rename to tests/files/map2.gno diff --git a/tests/files/map20.go b/tests/files/map20.gno similarity index 100% rename from tests/files/map20.go rename to tests/files/map20.gno diff --git a/tests/files/map21.go b/tests/files/map21.gno similarity index 100% rename from tests/files/map21.go rename to tests/files/map21.gno diff --git a/tests/files/map22.go b/tests/files/map22.gno similarity index 100% rename from tests/files/map22.go rename to tests/files/map22.gno diff --git a/tests/files/map23.go b/tests/files/map23.gno similarity index 100% rename from tests/files/map23.go rename to tests/files/map23.gno diff --git a/tests/files/map24.go b/tests/files/map24.gno similarity index 100% rename from tests/files/map24.go rename to tests/files/map24.gno diff --git a/tests/files/map25.go b/tests/files/map25.gno similarity index 100% rename from tests/files/map25.go rename to tests/files/map25.gno diff --git a/tests/files/map26.go b/tests/files/map26.gno similarity index 100% rename from tests/files/map26.go rename to tests/files/map26.gno diff --git a/tests/files/map27.go b/tests/files/map27.gno similarity index 100% rename from tests/files/map27.go rename to tests/files/map27.gno diff --git a/tests/files/map28b.go b/tests/files/map28b.gno similarity index 100% rename from tests/files/map28b.go rename to tests/files/map28b.gno diff --git a/tests/files/map29.go b/tests/files/map29.gno similarity index 100% rename from tests/files/map29.go rename to tests/files/map29.gno diff --git a/tests/files/map3.go b/tests/files/map3.gno similarity index 100% rename from tests/files/map3.go rename to tests/files/map3.gno diff --git a/tests/files/map4.go b/tests/files/map4.gno similarity index 100% rename from tests/files/map4.go rename to tests/files/map4.gno diff --git a/tests/files/map5.go b/tests/files/map5.gno similarity index 100% rename from tests/files/map5.go rename to tests/files/map5.gno diff --git a/tests/files/map6.go b/tests/files/map6.gno similarity index 100% rename from tests/files/map6.go rename to tests/files/map6.gno diff --git a/tests/files/map7.go b/tests/files/map7.gno similarity index 100% rename from tests/files/map7.go rename to tests/files/map7.gno diff --git a/tests/files/map8.go b/tests/files/map8.gno similarity index 100% rename from tests/files/map8.go rename to tests/files/map8.gno diff --git a/tests/files/map9.go b/tests/files/map9.gno similarity index 100% rename from tests/files/map9.go rename to tests/files/map9.gno diff --git a/tests/files/math0.go b/tests/files/math0.gno similarity index 100% rename from tests/files/math0.go rename to tests/files/math0.gno diff --git a/tests/files/math2.go b/tests/files/math2.gno similarity index 100% rename from tests/files/math2.go rename to tests/files/math2.gno diff --git a/tests/files/math3.go b/tests/files/math3.gno similarity index 100% rename from tests/files/math3.go rename to tests/files/math3.gno diff --git a/tests/files/maths_int16_long.go b/tests/files/maths_int16_long.gno similarity index 100% rename from tests/files/maths_int16_long.go rename to tests/files/maths_int16_long.gno diff --git a/tests/files/maths_int8.go b/tests/files/maths_int8.gno similarity index 100% rename from tests/files/maths_int8.go rename to tests/files/maths_int8.gno diff --git a/tests/files/method.go b/tests/files/method.gno similarity index 100% rename from tests/files/method.go rename to tests/files/method.gno diff --git a/tests/files/method0.go b/tests/files/method0.gno similarity index 100% rename from tests/files/method0.go rename to tests/files/method0.gno diff --git a/tests/files/method1.go b/tests/files/method1.gno similarity index 100% rename from tests/files/method1.go rename to tests/files/method1.gno diff --git a/tests/files/method10.go b/tests/files/method10.gno similarity index 100% rename from tests/files/method10.go rename to tests/files/method10.gno diff --git a/tests/files/method11.go b/tests/files/method11.gno similarity index 100% rename from tests/files/method11.go rename to tests/files/method11.gno diff --git a/tests/files/method12.go b/tests/files/method12.gno similarity index 100% rename from tests/files/method12.go rename to tests/files/method12.gno diff --git a/tests/files/method13.go b/tests/files/method13.gno similarity index 100% rename from tests/files/method13.go rename to tests/files/method13.gno diff --git a/tests/files/method14.go b/tests/files/method14.gno similarity index 100% rename from tests/files/method14.go rename to tests/files/method14.gno diff --git a/tests/files/method15.go b/tests/files/method15.gno similarity index 100% rename from tests/files/method15.go rename to tests/files/method15.gno diff --git a/tests/files/method16b.go b/tests/files/method16b.gno similarity index 100% rename from tests/files/method16b.go rename to tests/files/method16b.gno diff --git a/tests/files/method17b.go b/tests/files/method17b.gno similarity index 100% rename from tests/files/method17b.go rename to tests/files/method17b.gno diff --git a/tests/files/method18.go b/tests/files/method18.gno similarity index 100% rename from tests/files/method18.go rename to tests/files/method18.gno diff --git a/tests/files/method19.go b/tests/files/method19.gno similarity index 100% rename from tests/files/method19.go rename to tests/files/method19.gno diff --git a/tests/files/method2.go b/tests/files/method2.gno similarity index 100% rename from tests/files/method2.go rename to tests/files/method2.gno diff --git a/tests/files/method20.go b/tests/files/method20.gno similarity index 100% rename from tests/files/method20.go rename to tests/files/method20.gno diff --git a/tests/files/method21.go b/tests/files/method21.gno similarity index 100% rename from tests/files/method21.go rename to tests/files/method21.gno diff --git a/tests/files/method22.go b/tests/files/method22.gno similarity index 100% rename from tests/files/method22.go rename to tests/files/method22.gno diff --git a/tests/files/method23.go b/tests/files/method23.gno similarity index 100% rename from tests/files/method23.go rename to tests/files/method23.gno diff --git a/tests/files/method24.go b/tests/files/method24.gno similarity index 100% rename from tests/files/method24.go rename to tests/files/method24.gno diff --git a/tests/files/method25.go b/tests/files/method25.gno similarity index 100% rename from tests/files/method25.go rename to tests/files/method25.gno diff --git a/tests/files/method26.go b/tests/files/method26.gno similarity index 100% rename from tests/files/method26.go rename to tests/files/method26.gno diff --git a/tests/files/method27.go b/tests/files/method27.gno similarity index 100% rename from tests/files/method27.go rename to tests/files/method27.gno diff --git a/tests/files/method28.go b/tests/files/method28.gno similarity index 100% rename from tests/files/method28.go rename to tests/files/method28.gno diff --git a/tests/files/method29b.go b/tests/files/method29b.gno similarity index 100% rename from tests/files/method29b.go rename to tests/files/method29b.gno diff --git a/tests/files/method3.go b/tests/files/method3.gno similarity index 100% rename from tests/files/method3.go rename to tests/files/method3.gno diff --git a/tests/files/method30.go b/tests/files/method30.gno similarity index 100% rename from tests/files/method30.go rename to tests/files/method30.gno diff --git a/tests/files/method31b.go b/tests/files/method31b.gno similarity index 100% rename from tests/files/method31b.go rename to tests/files/method31b.gno diff --git a/tests/files/method32.go b/tests/files/method32.gno similarity index 85% rename from tests/files/method32.go rename to tests/files/method32.gno index f690b7276e2..090e74b094b 100644 --- a/tests/files/method32.go +++ b/tests/files/method32.gno @@ -6,8 +6,8 @@ import ( func main() { var a = []func(string){bar} - b := a[0] - b("bar") + b := a[0] + b("bar") } func bar(a string) { diff --git a/tests/files/method33.go b/tests/files/method33.gno similarity index 100% rename from tests/files/method33.go rename to tests/files/method33.gno diff --git a/tests/files/method34.go b/tests/files/method34.gno similarity index 100% rename from tests/files/method34.go rename to tests/files/method34.gno diff --git a/tests/files/method35.go b/tests/files/method35.gno similarity index 100% rename from tests/files/method35.go rename to tests/files/method35.gno diff --git a/tests/files/method36.go b/tests/files/method36.gno similarity index 100% rename from tests/files/method36.go rename to tests/files/method36.gno diff --git a/tests/files/method37.go b/tests/files/method37.gno similarity index 100% rename from tests/files/method37.go rename to tests/files/method37.gno diff --git a/tests/files/method4.go b/tests/files/method4.gno similarity index 100% rename from tests/files/method4.go rename to tests/files/method4.gno diff --git a/tests/files/method5.go b/tests/files/method5.gno similarity index 100% rename from tests/files/method5.go rename to tests/files/method5.gno diff --git a/tests/files/method6.go b/tests/files/method6.gno similarity index 100% rename from tests/files/method6.go rename to tests/files/method6.gno diff --git a/tests/files/method7.go b/tests/files/method7.gno similarity index 100% rename from tests/files/method7.go rename to tests/files/method7.gno diff --git a/tests/files/method8.go b/tests/files/method8.gno similarity index 100% rename from tests/files/method8.go rename to tests/files/method8.gno diff --git a/tests/files/method9.go b/tests/files/method9.gno similarity index 100% rename from tests/files/method9.go rename to tests/files/method9.gno diff --git a/tests/files/neg0.go b/tests/files/neg0.gno similarity index 100% rename from tests/files/neg0.go rename to tests/files/neg0.gno diff --git a/tests/files/new0.go b/tests/files/new0.gno similarity index 100% rename from tests/files/new0.go rename to tests/files/new0.gno diff --git a/tests/files/new1.go b/tests/files/new1.gno similarity index 100% rename from tests/files/new1.go rename to tests/files/new1.gno diff --git a/tests/files/new2.go b/tests/files/new2.gno similarity index 100% rename from tests/files/new2.go rename to tests/files/new2.gno diff --git a/tests/files/new3.go b/tests/files/new3.gno similarity index 100% rename from tests/files/new3.go rename to tests/files/new3.gno diff --git a/tests/files/nil0.go b/tests/files/nil0.gno similarity index 100% rename from tests/files/nil0.go rename to tests/files/nil0.gno diff --git a/tests/files/nil1.go b/tests/files/nil1.gno similarity index 100% rename from tests/files/nil1.go rename to tests/files/nil1.gno diff --git a/tests/files/nil2.go b/tests/files/nil2.gno similarity index 100% rename from tests/files/nil2.go rename to tests/files/nil2.gno diff --git a/tests/files/nil3.go b/tests/files/nil3.gno similarity index 100% rename from tests/files/nil3.go rename to tests/files/nil3.gno diff --git a/tests/files/not0.go b/tests/files/not0.gno similarity index 100% rename from tests/files/not0.go rename to tests/files/not0.gno diff --git a/tests/files/not1.gno b/tests/files/not1.gno new file mode 100644 index 00000000000..16292fe75bb --- /dev/null +++ b/tests/files/not1.gno @@ -0,0 +1,15 @@ +package main + +func main() { + a := 0 + b := true + if !b { + a = 1 + } else { + a = -1 + } + println(a) +} + +// Output: +// -1 diff --git a/tests/files/not1.go b/tests/files/not1.go deleted file mode 100644 index d2284fbf7a9..00000000000 --- a/tests/files/not1.go +++ /dev/null @@ -1,15 +0,0 @@ -package main - -func main() { - a := 0 - b := true - if (!b) { - a = 1 - } else { - a = -1 - } - println(a) -} - -// Output: -// -1 diff --git a/tests/files/not2.go b/tests/files/not2.gno similarity index 100% rename from tests/files/not2.go rename to tests/files/not2.gno diff --git a/tests/files/op0.go b/tests/files/op0.gno similarity index 100% rename from tests/files/op0.go rename to tests/files/op0.gno diff --git a/tests/files/op2.go b/tests/files/op2.gno similarity index 100% rename from tests/files/op2.go rename to tests/files/op2.gno diff --git a/tests/files/op6.go b/tests/files/op6.gno similarity index 100% rename from tests/files/op6.go rename to tests/files/op6.gno diff --git a/tests/files/op7.go b/tests/files/op7.gno similarity index 100% rename from tests/files/op7.go rename to tests/files/op7.gno diff --git a/tests/files/op8.go b/tests/files/op8.gno similarity index 100% rename from tests/files/op8.go rename to tests/files/op8.gno diff --git a/tests/files/opint16.go b/tests/files/opint16.gno similarity index 100% rename from tests/files/opint16.go rename to tests/files/opint16.gno diff --git a/tests/files/opint32.go b/tests/files/opint32.gno similarity index 100% rename from tests/files/opint32.go rename to tests/files/opint32.gno diff --git a/tests/files/opint64.go b/tests/files/opint64.gno similarity index 100% rename from tests/files/opint64.go rename to tests/files/opint64.gno diff --git a/tests/files/opint8.go b/tests/files/opint8.gno similarity index 100% rename from tests/files/opint8.go rename to tests/files/opint8.gno diff --git a/tests/files/opstring.go b/tests/files/opstring.gno similarity index 100% rename from tests/files/opstring.go rename to tests/files/opstring.gno diff --git a/tests/files/opuint16.go b/tests/files/opuint16.gno similarity index 100% rename from tests/files/opuint16.go rename to tests/files/opuint16.gno diff --git a/tests/files/opuint32.go b/tests/files/opuint32.gno similarity index 100% rename from tests/files/opuint32.go rename to tests/files/opuint32.gno diff --git a/tests/files/opuint64.go b/tests/files/opuint64.gno similarity index 100% rename from tests/files/opuint64.go rename to tests/files/opuint64.gno diff --git a/tests/files/opuint8.go b/tests/files/opuint8.gno similarity index 100% rename from tests/files/opuint8.go rename to tests/files/opuint8.gno diff --git a/tests/files/or0.go b/tests/files/or0.gno similarity index 100% rename from tests/files/or0.go rename to tests/files/or0.gno diff --git a/tests/files/or1.go b/tests/files/or1.gno similarity index 100% rename from tests/files/or1.go rename to tests/files/or1.gno diff --git a/tests/files/or2.go b/tests/files/or2.gno similarity index 100% rename from tests/files/or2.go rename to tests/files/or2.gno diff --git a/tests/files/or3.go b/tests/files/or3.gno similarity index 100% rename from tests/files/or3.go rename to tests/files/or3.gno diff --git a/tests/files/or4.go b/tests/files/or4.gno similarity index 100% rename from tests/files/or4.go rename to tests/files/or4.gno diff --git a/tests/files/panic0.go b/tests/files/panic0.gno similarity index 100% rename from tests/files/panic0.go rename to tests/files/panic0.gno diff --git a/tests/files/pkgname0.go b/tests/files/pkgname0.gno similarity index 100% rename from tests/files/pkgname0.go rename to tests/files/pkgname0.gno diff --git a/tests/files/pkgname1.go b/tests/files/pkgname1.gno similarity index 100% rename from tests/files/pkgname1.go rename to tests/files/pkgname1.gno diff --git a/tests/files/pkgname2.go b/tests/files/pkgname2.gno similarity index 100% rename from tests/files/pkgname2.go rename to tests/files/pkgname2.gno diff --git a/tests/files/primes.go b/tests/files/primes.gno similarity index 100% rename from tests/files/primes.go rename to tests/files/primes.gno diff --git a/tests/files/print0.go b/tests/files/print0.gno similarity index 100% rename from tests/files/print0.go rename to tests/files/print0.gno diff --git a/tests/files/ptr0.go b/tests/files/ptr0.gno similarity index 100% rename from tests/files/ptr0.go rename to tests/files/ptr0.gno diff --git a/tests/files/ptr1.go b/tests/files/ptr1.gno similarity index 100% rename from tests/files/ptr1.go rename to tests/files/ptr1.gno diff --git a/tests/files/ptr2.go b/tests/files/ptr2.gno similarity index 100% rename from tests/files/ptr2.go rename to tests/files/ptr2.gno diff --git a/tests/files/ptr3.go b/tests/files/ptr3.gno similarity index 100% rename from tests/files/ptr3.go rename to tests/files/ptr3.gno diff --git a/tests/files/ptr4.go b/tests/files/ptr4.gno similarity index 100% rename from tests/files/ptr4.go rename to tests/files/ptr4.gno diff --git a/tests/files/ptr5.go b/tests/files/ptr5.gno similarity index 100% rename from tests/files/ptr5.go rename to tests/files/ptr5.gno diff --git a/tests/files/ptr5a.go b/tests/files/ptr5a.gno similarity index 100% rename from tests/files/ptr5a.go rename to tests/files/ptr5a.gno diff --git a/tests/files/ptr6.go b/tests/files/ptr6.gno similarity index 100% rename from tests/files/ptr6.go rename to tests/files/ptr6.gno diff --git a/tests/files/ptr7.go b/tests/files/ptr7.gno similarity index 100% rename from tests/files/ptr7.go rename to tests/files/ptr7.gno diff --git a/tests/files/ptr8.go b/tests/files/ptr8.gno similarity index 100% rename from tests/files/ptr8.go rename to tests/files/ptr8.gno diff --git a/tests/files/ptr_array0.go b/tests/files/ptr_array0.gno similarity index 100% rename from tests/files/ptr_array0.go rename to tests/files/ptr_array0.gno diff --git a/tests/files/ptr_array1.go b/tests/files/ptr_array1.gno similarity index 100% rename from tests/files/ptr_array1.go rename to tests/files/ptr_array1.gno diff --git a/tests/files/ptr_array2.go b/tests/files/ptr_array2.gno similarity index 100% rename from tests/files/ptr_array2.go rename to tests/files/ptr_array2.gno diff --git a/tests/files/ptr_array3.go b/tests/files/ptr_array3.gno similarity index 100% rename from tests/files/ptr_array3.go rename to tests/files/ptr_array3.gno diff --git a/tests/files/range0.go b/tests/files/range0.gno similarity index 100% rename from tests/files/range0.go rename to tests/files/range0.gno diff --git a/tests/files/range1.go b/tests/files/range1.gno similarity index 100% rename from tests/files/range1.go rename to tests/files/range1.gno diff --git a/tests/files/range2.go b/tests/files/range2.gno similarity index 100% rename from tests/files/range2.go rename to tests/files/range2.gno diff --git a/tests/files/range3.go b/tests/files/range3.gno similarity index 100% rename from tests/files/range3.go rename to tests/files/range3.gno diff --git a/tests/files/range4.go b/tests/files/range4.gno similarity index 100% rename from tests/files/range4.go rename to tests/files/range4.gno diff --git a/tests/files/range5.go b/tests/files/range5.gno similarity index 100% rename from tests/files/range5.go rename to tests/files/range5.gno diff --git a/tests/files/range6.go b/tests/files/range6.gno similarity index 100% rename from tests/files/range6.go rename to tests/files/range6.gno diff --git a/tests/files/range7.go b/tests/files/range7.gno similarity index 100% rename from tests/files/range7.go rename to tests/files/range7.gno diff --git a/tests/files/recover0.go b/tests/files/recover0.gno similarity index 100% rename from tests/files/recover0.go rename to tests/files/recover0.gno diff --git a/tests/files/recover1.go b/tests/files/recover1.gno similarity index 100% rename from tests/files/recover1.go rename to tests/files/recover1.gno diff --git a/tests/files/recover2.go b/tests/files/recover2.gno similarity index 100% rename from tests/files/recover2.go rename to tests/files/recover2.gno diff --git a/tests/files/recover3.go b/tests/files/recover3.gno similarity index 100% rename from tests/files/recover3.go rename to tests/files/recover3.gno diff --git a/tests/files/recover4.go b/tests/files/recover4.gno similarity index 100% rename from tests/files/recover4.go rename to tests/files/recover4.gno diff --git a/tests/files/recurse0.go b/tests/files/recurse0.gno similarity index 100% rename from tests/files/recurse0.go rename to tests/files/recurse0.gno diff --git a/tests/files/redeclaration-global0.gno b/tests/files/redeclaration-global0.gno new file mode 100644 index 00000000000..26ea027a1c0 --- /dev/null +++ b/tests/files/redeclaration-global0.gno @@ -0,0 +1,14 @@ +package main + +type time int + +var time string + +func main() { + time = "hello" + println(time) +} + +// Error: +// files/redeclaration-global0.gno:5:5: time redeclared in this block +// previous declaration at files/redeclaration-global0.gno:3:6 diff --git a/tests/files/redeclaration-global0.go b/tests/files/redeclaration-global0.go deleted file mode 100644 index 52bec3a0d08..00000000000 --- a/tests/files/redeclaration-global0.go +++ /dev/null @@ -1,14 +0,0 @@ -package main - -type time int - -var time string - -func main() { - time = "hello" - println(time) -} - -// Error: -// files/redeclaration-global0.go:5:5: time redeclared in this block -// previous declaration at files/redeclaration-global0.go:3:6 diff --git a/tests/files/redeclaration-global1.gno b/tests/files/redeclaration-global1.gno new file mode 100644 index 00000000000..6f2e4f51695 --- /dev/null +++ b/tests/files/redeclaration-global1.gno @@ -0,0 +1,14 @@ +package main + +var time int + +type time string + +func main() { + var t time = "hello" + println(t) +} + +// Error: +// files/redeclaration-global1.gno:5:6: time redeclared in this block +// previous declaration at files/redeclaration-global1.gno:3:5 diff --git a/tests/files/redeclaration-global1.go b/tests/files/redeclaration-global1.go deleted file mode 100644 index ef4e09a1c05..00000000000 --- a/tests/files/redeclaration-global1.go +++ /dev/null @@ -1,14 +0,0 @@ -package main - -var time int - -type time string - -func main() { - var t time = "hello" - println(t) -} - -// Error: -// files/redeclaration-global1.go:5:6: time redeclared in this block -// previous declaration at files/redeclaration-global1.go:3:5 diff --git a/tests/files/redeclaration-global5.gno b/tests/files/redeclaration-global5.gno new file mode 100644 index 00000000000..63337935370 --- /dev/null +++ b/tests/files/redeclaration-global5.gno @@ -0,0 +1,16 @@ +package main + +var time int + +func time() string { + return "hello" +} + +func main() { + t := time() + println(t) +} + +// Error: +// files/redeclaration-global5.gno:5:6: time redeclared in this block +// previous declaration at files/redeclaration-global5.gno:3:5 diff --git a/tests/files/redeclaration-global5.go b/tests/files/redeclaration-global5.go deleted file mode 100644 index 1e34dbe0027..00000000000 --- a/tests/files/redeclaration-global5.go +++ /dev/null @@ -1,16 +0,0 @@ -package main - -var time int - -func time() string { - return "hello" -} - -func main() { - t := time() - println(t) -} - -// Error: -// files/redeclaration-global5.go:5:6: time redeclared in this block -// previous declaration at files/redeclaration-global5.go:3:5 diff --git a/tests/files/redeclaration0.gno b/tests/files/redeclaration0.gno new file mode 100644 index 00000000000..72fbddd7e58 --- /dev/null +++ b/tests/files/redeclaration0.gno @@ -0,0 +1,15 @@ +package main + +func main() { + type foo struct { + yolo string + } + + var foo int + foo = 2 + println(foo) +} + +// Error: +// files/redeclaration0.gno:8:6: foo redeclared in this block +// previous declaration at files/redeclaration0.gno:4:7 diff --git a/tests/files/redeclaration0.go b/tests/files/redeclaration0.go deleted file mode 100644 index 66d246b91b2..00000000000 --- a/tests/files/redeclaration0.go +++ /dev/null @@ -1,15 +0,0 @@ -package main - -func main() { - type foo struct { - yolo string - } - - var foo int - foo = 2 - println(foo) -} - -// Error: -// files/redeclaration0.go:8:6: foo redeclared in this block -// previous declaration at files/redeclaration0.go:4:7 diff --git a/tests/files/redeclaration1.go b/tests/files/redeclaration1.gno similarity index 60% rename from tests/files/redeclaration1.go rename to tests/files/redeclaration1.gno index 7dd864b99b3..b1ee805cba5 100644 --- a/tests/files/redeclaration1.go +++ b/tests/files/redeclaration1.gno @@ -9,4 +9,4 @@ func main() { } // Error: -// files/redeclaration1.go:6:6: foo redeclared in this block +// files/redeclaration1.gno:6:6: foo redeclared in this block diff --git a/tests/files/redeclaration2.gno b/tests/files/redeclaration2.gno new file mode 100644 index 00000000000..cc53a28711b --- /dev/null +++ b/tests/files/redeclaration2.gno @@ -0,0 +1,15 @@ +package main + +func main() { + var foo struct { + yolo string + } + + var foo int + foo = 2 + println(foo) +} + +// Error: +// files/redeclaration2.gno:8:6: foo redeclared in this block +// previous declaration at files/redeclaration2.gno:4:6 diff --git a/tests/files/redeclaration2.go b/tests/files/redeclaration2.go deleted file mode 100644 index 554f04a5cbf..00000000000 --- a/tests/files/redeclaration2.go +++ /dev/null @@ -1,15 +0,0 @@ -package main - -func main() { - var foo struct { - yolo string - } - - var foo int - foo = 2 - println(foo) -} - -// Error: -// files/redeclaration2.go:8:6: foo redeclared in this block -// previous declaration at files/redeclaration2.go:4:6 diff --git a/tests/files/redeclaration3.go b/tests/files/redeclaration3.gno similarity index 63% rename from tests/files/redeclaration3.go rename to tests/files/redeclaration3.gno index 7e014905290..e6fb0def606 100644 --- a/tests/files/redeclaration3.go +++ b/tests/files/redeclaration3.gno @@ -10,4 +10,4 @@ func main() { } // Error: -// files/redeclaration3.go:7:7: foo redeclared in this block +// files/redeclaration3.gno:7:7: foo redeclared in this block diff --git a/tests/files2/redeclaration4.go b/tests/files/redeclaration4.gno similarity index 66% rename from tests/files2/redeclaration4.go rename to tests/files/redeclaration4.gno index d280dd6e2d4..8cdf20421d1 100644 --- a/tests/files2/redeclaration4.go +++ b/tests/files/redeclaration4.gno @@ -11,4 +11,4 @@ func main() { } // Error: -// files2/redeclaration4.go:8:7: foo redeclared in this block +// files/redeclaration4.gno:8:7: foo redeclared in this block diff --git a/tests/files/redeclaration5.go b/tests/files/redeclaration5.gno similarity index 66% rename from tests/files/redeclaration5.go rename to tests/files/redeclaration5.gno index 9874b4e62a9..d4df4968459 100644 --- a/tests/files/redeclaration5.go +++ b/tests/files/redeclaration5.gno @@ -11,4 +11,4 @@ func main() { } // Error: -// files/redeclaration5.go:8:7: foo redeclared in this block +// files/redeclaration5.gno:8:7: foo redeclared in this block diff --git a/tests/files/ret1.go b/tests/files/ret1.gno similarity index 100% rename from tests/files/ret1.go rename to tests/files/ret1.gno diff --git a/tests/files/ret10.go b/tests/files/ret10.gno similarity index 100% rename from tests/files/ret10.go rename to tests/files/ret10.gno diff --git a/tests/files/ret11.go b/tests/files/ret11.gno similarity index 100% rename from tests/files/ret11.go rename to tests/files/ret11.gno diff --git a/tests/files/ret12.go b/tests/files/ret12.gno similarity index 100% rename from tests/files/ret12.go rename to tests/files/ret12.gno diff --git a/tests/files/ret13.go b/tests/files/ret13.gno similarity index 100% rename from tests/files/ret13.go rename to tests/files/ret13.gno diff --git a/tests/files/ret14.go b/tests/files/ret14.gno similarity index 100% rename from tests/files/ret14.go rename to tests/files/ret14.gno diff --git a/tests/files/ret2.go b/tests/files/ret2.gno similarity index 100% rename from tests/files/ret2.go rename to tests/files/ret2.gno diff --git a/tests/files/ret3.go b/tests/files/ret3.gno similarity index 100% rename from tests/files/ret3.go rename to tests/files/ret3.gno diff --git a/tests/files/ret4.go b/tests/files/ret4.gno similarity index 100% rename from tests/files/ret4.go rename to tests/files/ret4.gno diff --git a/tests/files/ret5.go b/tests/files/ret5.gno similarity index 100% rename from tests/files/ret5.go rename to tests/files/ret5.gno diff --git a/tests/files/ret6.go b/tests/files/ret6.gno similarity index 100% rename from tests/files/ret6.go rename to tests/files/ret6.gno diff --git a/tests/files/ret7.go b/tests/files/ret7.gno similarity index 100% rename from tests/files/ret7.go rename to tests/files/ret7.gno diff --git a/tests/files/ret8.go b/tests/files/ret8.gno similarity index 100% rename from tests/files/ret8.go rename to tests/files/ret8.gno diff --git a/tests/files/ret9.go b/tests/files/ret9.gno similarity index 100% rename from tests/files/ret9.go rename to tests/files/ret9.gno diff --git a/tests/files/run0.go b/tests/files/run0.gno similarity index 100% rename from tests/files/run0.go rename to tests/files/run0.gno diff --git a/tests/files/run1.go b/tests/files/run1.gno similarity index 100% rename from tests/files/run1.go rename to tests/files/run1.gno diff --git a/tests/files/run10.go b/tests/files/run10.gno similarity index 100% rename from tests/files/run10.go rename to tests/files/run10.gno diff --git a/tests/files/run11.go b/tests/files/run11.gno similarity index 100% rename from tests/files/run11.go rename to tests/files/run11.gno diff --git a/tests/files/run12.go b/tests/files/run12.gno similarity index 100% rename from tests/files/run12.go rename to tests/files/run12.gno diff --git a/tests/files/run13.go b/tests/files/run13.gno similarity index 100% rename from tests/files/run13.go rename to tests/files/run13.gno diff --git a/tests/files/run4.go b/tests/files/run4.gno similarity index 100% rename from tests/files/run4.go rename to tests/files/run4.gno diff --git a/tests/files/run5.go b/tests/files/run5.gno similarity index 100% rename from tests/files/run5.go rename to tests/files/run5.gno diff --git a/tests/files/run6.go b/tests/files/run6.gno similarity index 100% rename from tests/files/run6.go rename to tests/files/run6.gno diff --git a/tests/files/run7.go b/tests/files/run7.gno similarity index 100% rename from tests/files/run7.go rename to tests/files/run7.gno diff --git a/tests/files/run8.go b/tests/files/run8.gno similarity index 100% rename from tests/files/run8.go rename to tests/files/run8.gno diff --git a/tests/files/run9.go b/tests/files/run9.gno similarity index 100% rename from tests/files/run9.go rename to tests/files/run9.gno diff --git a/tests/files/rune0.go b/tests/files/rune0.gno similarity index 100% rename from tests/files/rune0.go rename to tests/files/rune0.gno diff --git a/tests/files/rune1.go b/tests/files/rune1.gno similarity index 100% rename from tests/files/rune1.go rename to tests/files/rune1.gno diff --git a/tests/files/rune2.go b/tests/files/rune2.gno similarity index 100% rename from tests/files/rune2.go rename to tests/files/rune2.gno diff --git a/tests/files/scope0.go b/tests/files/scope0.gno similarity index 100% rename from tests/files/scope0.go rename to tests/files/scope0.gno diff --git a/tests/files/scope1.go b/tests/files/scope1.gno similarity index 100% rename from tests/files/scope1.go rename to tests/files/scope1.gno diff --git a/tests/files/scope2.go b/tests/files/scope2.gno similarity index 100% rename from tests/files/scope2.go rename to tests/files/scope2.gno diff --git a/tests/files/scope3.go b/tests/files/scope3.gno similarity index 100% rename from tests/files/scope3.go rename to tests/files/scope3.gno diff --git a/tests/files/scope4.go b/tests/files/scope4.gno similarity index 100% rename from tests/files/scope4.go rename to tests/files/scope4.gno diff --git a/tests/files/scope5.go b/tests/files/scope5.gno similarity index 100% rename from tests/files/scope5.go rename to tests/files/scope5.gno diff --git a/tests/files/scope6.go b/tests/files/scope6.gno similarity index 100% rename from tests/files/scope6.go rename to tests/files/scope6.gno diff --git a/tests/files/scope7.go b/tests/files/scope7.gno similarity index 100% rename from tests/files/scope7.go rename to tests/files/scope7.gno diff --git a/tests/files/shift0.go b/tests/files/shift0.gno similarity index 100% rename from tests/files/shift0.go rename to tests/files/shift0.gno diff --git a/tests/files/shift1.go b/tests/files/shift1.gno similarity index 100% rename from tests/files/shift1.go rename to tests/files/shift1.gno diff --git a/tests/files/shift2.go b/tests/files/shift2.gno similarity index 100% rename from tests/files/shift2.go rename to tests/files/shift2.gno diff --git a/tests/files/shift3.go b/tests/files/shift3.gno similarity index 100% rename from tests/files/shift3.go rename to tests/files/shift3.gno diff --git a/tests/files/shift4.go b/tests/files/shift4.gno similarity index 100% rename from tests/files/shift4.go rename to tests/files/shift4.gno diff --git a/tests/files/shift5.go b/tests/files/shift5.gno similarity index 100% rename from tests/files/shift5.go rename to tests/files/shift5.gno diff --git a/tests/files2/slice.go b/tests/files/slice.gno similarity index 51% rename from tests/files2/slice.go rename to tests/files/slice.gno index 1a734757503..2c51d62e1e4 100644 --- a/tests/files2/slice.go +++ b/tests/files/slice.gno @@ -3,8 +3,8 @@ package main import "fmt" func main() { - a := [2][2]int{{0, 1}, {2, 3}} - fmt.Println(a[0][0:]) + a := [2][2]int{{0, 1}, {2, 3}} + fmt.Println(a[0][0:]) } // Output: diff --git a/tests/files/std0.go b/tests/files/std0.gno similarity index 100% rename from tests/files/std0.go rename to tests/files/std0.gno diff --git a/tests/files/std1.go b/tests/files/std1.gno similarity index 100% rename from tests/files/std1.go rename to tests/files/std1.gno diff --git a/tests/files/std2.go b/tests/files/std2.gno similarity index 100% rename from tests/files/std2.go rename to tests/files/std2.gno diff --git a/tests/files/std3.go b/tests/files/std3.gno similarity index 100% rename from tests/files/std3.go rename to tests/files/std3.gno diff --git a/tests/files/std4.go b/tests/files/std4.gno similarity index 100% rename from tests/files/std4.go rename to tests/files/std4.gno diff --git a/tests/files/std5.go b/tests/files/std5.gno similarity index 100% rename from tests/files/std5.go rename to tests/files/std5.gno diff --git a/tests/files/std6.go b/tests/files/std6.gno similarity index 100% rename from tests/files/std6.go rename to tests/files/std6.gno diff --git a/tests/files/std7.go b/tests/files/std7.gno similarity index 100% rename from tests/files/std7.go rename to tests/files/std7.gno diff --git a/tests/files/std8.go b/tests/files/std8.gno similarity index 100% rename from tests/files/std8.go rename to tests/files/std8.gno diff --git a/tests/files/str.go b/tests/files/str.gno similarity index 100% rename from tests/files/str.go rename to tests/files/str.gno diff --git a/tests/files/str0.go b/tests/files/str0.gno similarity index 100% rename from tests/files/str0.go rename to tests/files/str0.gno diff --git a/tests/files/str1.go b/tests/files/str1.gno similarity index 100% rename from tests/files/str1.go rename to tests/files/str1.gno diff --git a/tests/files/str2.go b/tests/files/str2.gno similarity index 100% rename from tests/files/str2.go rename to tests/files/str2.gno diff --git a/tests/files/str3.go b/tests/files/str3.gno similarity index 100% rename from tests/files/str3.go rename to tests/files/str3.gno diff --git a/tests/files/str4.go b/tests/files/str4.gno similarity index 100% rename from tests/files/str4.go rename to tests/files/str4.gno diff --git a/tests/files/struct.go b/tests/files/struct.gno similarity index 100% rename from tests/files/struct.go rename to tests/files/struct.gno diff --git a/tests/files/struct0.go b/tests/files/struct0.gno similarity index 100% rename from tests/files/struct0.go rename to tests/files/struct0.gno diff --git a/tests/files/struct0a.go b/tests/files/struct0a.gno similarity index 100% rename from tests/files/struct0a.go rename to tests/files/struct0a.gno diff --git a/tests/files/struct1.go b/tests/files/struct1.gno similarity index 100% rename from tests/files/struct1.go rename to tests/files/struct1.gno diff --git a/tests/files/struct10.go b/tests/files/struct10.gno similarity index 100% rename from tests/files/struct10.go rename to tests/files/struct10.gno diff --git a/tests/files/struct11.go b/tests/files/struct11.gno similarity index 100% rename from tests/files/struct11.go rename to tests/files/struct11.gno diff --git a/tests/files/struct11b.go b/tests/files/struct11b.gno similarity index 100% rename from tests/files/struct11b.go rename to tests/files/struct11b.gno diff --git a/tests/files/struct12.go b/tests/files/struct12.gno similarity index 100% rename from tests/files/struct12.go rename to tests/files/struct12.gno diff --git a/tests/files/struct13.go b/tests/files/struct13.gno similarity index 100% rename from tests/files/struct13.go rename to tests/files/struct13.gno diff --git a/tests/files/struct14.go b/tests/files/struct14.gno similarity index 100% rename from tests/files/struct14.go rename to tests/files/struct14.gno diff --git a/tests/files/struct16.go b/tests/files/struct16.gno similarity index 100% rename from tests/files/struct16.go rename to tests/files/struct16.gno diff --git a/tests/files/struct17.go b/tests/files/struct17.gno similarity index 100% rename from tests/files/struct17.go rename to tests/files/struct17.gno diff --git a/tests/files/struct19.go b/tests/files/struct19.gno similarity index 100% rename from tests/files/struct19.go rename to tests/files/struct19.gno diff --git a/tests/files/struct2.go b/tests/files/struct2.gno similarity index 100% rename from tests/files/struct2.go rename to tests/files/struct2.gno diff --git a/tests/files/struct20.go b/tests/files/struct20.gno similarity index 100% rename from tests/files/struct20.go rename to tests/files/struct20.gno diff --git a/tests/files/struct21.go b/tests/files/struct21.gno similarity index 100% rename from tests/files/struct21.go rename to tests/files/struct21.gno diff --git a/tests/files/struct22.go b/tests/files/struct22.gno similarity index 100% rename from tests/files/struct22.go rename to tests/files/struct22.gno diff --git a/tests/files/struct24.go b/tests/files/struct24.gno similarity index 100% rename from tests/files/struct24.go rename to tests/files/struct24.gno diff --git a/tests/files/struct25.go b/tests/files/struct25.gno similarity index 100% rename from tests/files/struct25.go rename to tests/files/struct25.gno diff --git a/tests/files/struct26.go b/tests/files/struct26.gno similarity index 100% rename from tests/files/struct26.go rename to tests/files/struct26.gno diff --git a/tests/files/struct27.go b/tests/files/struct27.gno similarity index 100% rename from tests/files/struct27.go rename to tests/files/struct27.gno diff --git a/tests/files/struct28b.go b/tests/files/struct28b.gno similarity index 100% rename from tests/files/struct28b.go rename to tests/files/struct28b.gno diff --git a/tests/files/struct29.go b/tests/files/struct29.gno similarity index 100% rename from tests/files/struct29.go rename to tests/files/struct29.gno diff --git a/tests/files/struct3.go b/tests/files/struct3.gno similarity index 100% rename from tests/files/struct3.go rename to tests/files/struct3.gno diff --git a/tests/files/struct30.go b/tests/files/struct30.gno similarity index 100% rename from tests/files/struct30.go rename to tests/files/struct30.gno diff --git a/tests/files/struct31.go b/tests/files/struct31.gno similarity index 100% rename from tests/files/struct31.go rename to tests/files/struct31.gno diff --git a/tests/files/struct32.go b/tests/files/struct32.gno similarity index 100% rename from tests/files/struct32.go rename to tests/files/struct32.gno diff --git a/tests/files/struct33.go b/tests/files/struct33.gno similarity index 100% rename from tests/files/struct33.go rename to tests/files/struct33.gno diff --git a/tests/files/struct34.go b/tests/files/struct34.gno similarity index 100% rename from tests/files/struct34.go rename to tests/files/struct34.gno diff --git a/tests/files/struct35.go b/tests/files/struct35.gno similarity index 100% rename from tests/files/struct35.go rename to tests/files/struct35.gno diff --git a/tests/files/struct36.go b/tests/files/struct36.gno similarity index 100% rename from tests/files/struct36.go rename to tests/files/struct36.gno diff --git a/tests/files/struct37.go b/tests/files/struct37.gno similarity index 100% rename from tests/files/struct37.go rename to tests/files/struct37.gno diff --git a/tests/files/struct38.go b/tests/files/struct38.gno similarity index 100% rename from tests/files/struct38.go rename to tests/files/struct38.gno diff --git a/tests/files/struct39.go b/tests/files/struct39.gno similarity index 100% rename from tests/files/struct39.go rename to tests/files/struct39.gno diff --git a/tests/files/struct4.go b/tests/files/struct4.gno similarity index 100% rename from tests/files/struct4.go rename to tests/files/struct4.gno diff --git a/tests/files/struct40.go b/tests/files/struct40.gno similarity index 100% rename from tests/files/struct40.go rename to tests/files/struct40.gno diff --git a/tests/files/struct41.go b/tests/files/struct41.gno similarity index 100% rename from tests/files/struct41.go rename to tests/files/struct41.gno diff --git a/tests/files/struct42.go b/tests/files/struct42.gno similarity index 100% rename from tests/files/struct42.go rename to tests/files/struct42.gno diff --git a/tests/files/struct43.go b/tests/files/struct43.gno similarity index 100% rename from tests/files/struct43.go rename to tests/files/struct43.gno diff --git a/tests/files/struct44.go b/tests/files/struct44.gno similarity index 100% rename from tests/files/struct44.go rename to tests/files/struct44.gno diff --git a/tests/files/struct45.go b/tests/files/struct45.gno similarity index 100% rename from tests/files/struct45.go rename to tests/files/struct45.gno diff --git a/tests/files/struct46.go b/tests/files/struct46.gno similarity index 100% rename from tests/files/struct46.go rename to tests/files/struct46.gno diff --git a/tests/files/struct47.go b/tests/files/struct47.gno similarity index 100% rename from tests/files/struct47.go rename to tests/files/struct47.gno diff --git a/tests/files/struct48.go b/tests/files/struct48.gno similarity index 100% rename from tests/files/struct48.go rename to tests/files/struct48.gno diff --git a/tests/files/struct49.go b/tests/files/struct49.gno similarity index 94% rename from tests/files/struct49.go rename to tests/files/struct49.gno index 8e574770c68..c8705d0e95a 100644 --- a/tests/files/struct49.go +++ b/tests/files/struct49.gno @@ -25,7 +25,7 @@ func main() { } s.ts["test"] = append(s.ts["test"], &T{s: s}) - t , ok:= s.getT("test") + t, ok := s.getT("test") println(t != nil, ok) } diff --git a/tests/files/struct5.go b/tests/files/struct5.gno similarity index 100% rename from tests/files/struct5.go rename to tests/files/struct5.gno diff --git a/tests/files/struct50b.go b/tests/files/struct50b.gno similarity index 100% rename from tests/files/struct50b.go rename to tests/files/struct50b.gno diff --git a/tests/files/struct52b.go b/tests/files/struct52b.gno similarity index 100% rename from tests/files/struct52b.go rename to tests/files/struct52b.gno diff --git a/tests/files/struct53b.go b/tests/files/struct53b.gno similarity index 100% rename from tests/files/struct53b.go rename to tests/files/struct53b.gno diff --git a/tests/files/struct54.go b/tests/files/struct54.gno similarity index 100% rename from tests/files/struct54.go rename to tests/files/struct54.gno diff --git a/tests/files/struct56.go b/tests/files/struct56.gno similarity index 100% rename from tests/files/struct56.go rename to tests/files/struct56.gno diff --git a/tests/files/struct57.go b/tests/files/struct57.gno similarity index 100% rename from tests/files/struct57.go rename to tests/files/struct57.gno diff --git a/tests/files/struct6.go b/tests/files/struct6.gno similarity index 100% rename from tests/files/struct6.go rename to tests/files/struct6.gno diff --git a/tests/files/struct7.go b/tests/files/struct7.gno similarity index 100% rename from tests/files/struct7.go rename to tests/files/struct7.gno diff --git a/tests/files/struct8.go b/tests/files/struct8.gno similarity index 100% rename from tests/files/struct8.go rename to tests/files/struct8.gno diff --git a/tests/files/struct9.go b/tests/files/struct9.gno similarity index 100% rename from tests/files/struct9.go rename to tests/files/struct9.gno diff --git a/tests/files/switch.go b/tests/files/switch.gno similarity index 100% rename from tests/files/switch.go rename to tests/files/switch.gno diff --git a/tests/files/switch0.go b/tests/files/switch0.gno similarity index 100% rename from tests/files/switch0.go rename to tests/files/switch0.gno diff --git a/tests/files/switch1.go b/tests/files/switch1.gno similarity index 100% rename from tests/files/switch1.go rename to tests/files/switch1.gno diff --git a/tests/files/switch10.go b/tests/files/switch10.gno similarity index 100% rename from tests/files/switch10.go rename to tests/files/switch10.gno diff --git a/tests/files/switch11.go b/tests/files/switch11.gno similarity index 100% rename from tests/files/switch11.go rename to tests/files/switch11.gno diff --git a/tests/files/switch12.go b/tests/files/switch12.gno similarity index 100% rename from tests/files/switch12.go rename to tests/files/switch12.gno diff --git a/tests/files/switch13.go b/tests/files/switch13.gno similarity index 100% rename from tests/files/switch13.go rename to tests/files/switch13.gno diff --git a/tests/files/switch14.go b/tests/files/switch14.gno similarity index 100% rename from tests/files/switch14.go rename to tests/files/switch14.gno diff --git a/tests/files/switch15.go b/tests/files/switch15.gno similarity index 100% rename from tests/files/switch15.go rename to tests/files/switch15.gno diff --git a/tests/files/switch16.go b/tests/files/switch16.gno similarity index 100% rename from tests/files/switch16.go rename to tests/files/switch16.gno diff --git a/tests/files/switch17.go b/tests/files/switch17.gno similarity index 100% rename from tests/files/switch17.go rename to tests/files/switch17.gno diff --git a/tests/files/switch18.go b/tests/files/switch18.gno similarity index 100% rename from tests/files/switch18.go rename to tests/files/switch18.gno diff --git a/tests/files/switch19.go b/tests/files/switch19.gno similarity index 100% rename from tests/files/switch19.go rename to tests/files/switch19.gno diff --git a/tests/files/switch2.go b/tests/files/switch2.gno similarity index 100% rename from tests/files/switch2.go rename to tests/files/switch2.gno diff --git a/tests/files/switch20.go b/tests/files/switch20.gno similarity index 100% rename from tests/files/switch20.go rename to tests/files/switch20.gno diff --git a/tests/files/switch21.go b/tests/files/switch21.gno similarity index 100% rename from tests/files/switch21.go rename to tests/files/switch21.gno diff --git a/tests/files/switch22.go b/tests/files/switch22.gno similarity index 100% rename from tests/files/switch22.go rename to tests/files/switch22.gno diff --git a/tests/files/switch23.go b/tests/files/switch23.gno similarity index 100% rename from tests/files/switch23.go rename to tests/files/switch23.gno diff --git a/tests/files/switch24.go b/tests/files/switch24.gno similarity index 100% rename from tests/files/switch24.go rename to tests/files/switch24.gno diff --git a/tests/files/switch25.go b/tests/files/switch25.gno similarity index 100% rename from tests/files/switch25.go rename to tests/files/switch25.gno diff --git a/tests/files/switch26.go b/tests/files/switch26.gno similarity index 100% rename from tests/files/switch26.go rename to tests/files/switch26.gno diff --git a/tests/files/switch27.go b/tests/files/switch27.gno similarity index 100% rename from tests/files/switch27.go rename to tests/files/switch27.gno diff --git a/tests/files/switch28.go b/tests/files/switch28.gno similarity index 100% rename from tests/files/switch28.go rename to tests/files/switch28.gno diff --git a/tests/files/switch29.go b/tests/files/switch29.gno similarity index 100% rename from tests/files/switch29.go rename to tests/files/switch29.gno diff --git a/tests/files/switch30.go b/tests/files/switch30.gno similarity index 100% rename from tests/files/switch30.go rename to tests/files/switch30.gno diff --git a/tests/files/switch31.go b/tests/files/switch31.gno similarity index 100% rename from tests/files/switch31.go rename to tests/files/switch31.gno diff --git a/tests/files/switch32.go b/tests/files/switch32.gno similarity index 100% rename from tests/files/switch32.go rename to tests/files/switch32.gno diff --git a/tests/files/switch33.go b/tests/files/switch33.gno similarity index 100% rename from tests/files/switch33.go rename to tests/files/switch33.gno diff --git a/tests/files/switch34.go b/tests/files/switch34.gno similarity index 100% rename from tests/files/switch34.go rename to tests/files/switch34.gno diff --git a/tests/files/switch35.go b/tests/files/switch35.gno similarity index 100% rename from tests/files/switch35.go rename to tests/files/switch35.gno diff --git a/tests/files/switch36.go b/tests/files/switch36.gno similarity index 100% rename from tests/files/switch36.go rename to tests/files/switch36.gno diff --git a/tests/files/switch37.go b/tests/files/switch37.gno similarity index 100% rename from tests/files/switch37.go rename to tests/files/switch37.gno diff --git a/tests/files/switch38.go b/tests/files/switch38.gno similarity index 100% rename from tests/files/switch38.go rename to tests/files/switch38.gno diff --git a/tests/files/switch39.go b/tests/files/switch39.gno similarity index 100% rename from tests/files/switch39.go rename to tests/files/switch39.gno diff --git a/tests/files/switch5.go b/tests/files/switch5.gno similarity index 100% rename from tests/files/switch5.go rename to tests/files/switch5.gno diff --git a/tests/files/switch7.go b/tests/files/switch7.gno similarity index 100% rename from tests/files/switch7.go rename to tests/files/switch7.gno diff --git a/tests/files/time0.go b/tests/files/time0.gno similarity index 100% rename from tests/files/time0.go rename to tests/files/time0.gno diff --git a/tests/files/time1.go b/tests/files/time1.gno similarity index 100% rename from tests/files/time1.go rename to tests/files/time1.gno diff --git a/tests/files/time11.go b/tests/files/time11.gno similarity index 100% rename from tests/files/time11.go rename to tests/files/time11.gno diff --git a/tests/files/time12.go b/tests/files/time12.gno similarity index 100% rename from tests/files/time12.go rename to tests/files/time12.gno diff --git a/tests/files/time13.go b/tests/files/time13.gno similarity index 100% rename from tests/files/time13.go rename to tests/files/time13.gno diff --git a/tests/files/time14.go b/tests/files/time14.gno similarity index 100% rename from tests/files/time14.go rename to tests/files/time14.gno diff --git a/tests/files/time15.go b/tests/files/time15.gno similarity index 100% rename from tests/files/time15.go rename to tests/files/time15.gno diff --git a/tests/files/time2.go b/tests/files/time2.gno similarity index 100% rename from tests/files/time2.go rename to tests/files/time2.gno diff --git a/tests/files/time3.go b/tests/files/time3.gno similarity index 100% rename from tests/files/time3.go rename to tests/files/time3.gno diff --git a/tests/files/time4.go b/tests/files/time4.gno similarity index 100% rename from tests/files/time4.go rename to tests/files/time4.gno diff --git a/tests/files/time6.go b/tests/files/time6.gno similarity index 100% rename from tests/files/time6.go rename to tests/files/time6.gno diff --git a/tests/files/time7.go b/tests/files/time7.gno similarity index 100% rename from tests/files/time7.go rename to tests/files/time7.gno diff --git a/tests/files/time8.go b/tests/files/time8.gno similarity index 100% rename from tests/files/time8.go rename to tests/files/time8.gno diff --git a/tests/files/time9.go b/tests/files/time9.gno similarity index 100% rename from tests/files/time9.go rename to tests/files/time9.gno diff --git a/tests/files/type0.go b/tests/files/type0.gno similarity index 100% rename from tests/files/type0.go rename to tests/files/type0.gno diff --git a/tests/files/type1.go b/tests/files/type1.gno similarity index 100% rename from tests/files/type1.go rename to tests/files/type1.gno diff --git a/tests/files/type11.go b/tests/files/type11.gno similarity index 100% rename from tests/files/type11.go rename to tests/files/type11.gno diff --git a/tests/files/type12.go b/tests/files/type12.gno similarity index 100% rename from tests/files/type12.go rename to tests/files/type12.gno diff --git a/tests/files/type13.go b/tests/files/type13.gno similarity index 100% rename from tests/files/type13.go rename to tests/files/type13.gno diff --git a/tests/files/type14.go b/tests/files/type14.gno similarity index 100% rename from tests/files/type14.go rename to tests/files/type14.gno diff --git a/tests/files/type15.go b/tests/files/type15.gno similarity index 100% rename from tests/files/type15.go rename to tests/files/type15.gno diff --git a/tests/files/type16.go b/tests/files/type16.gno similarity index 100% rename from tests/files/type16.go rename to tests/files/type16.gno diff --git a/tests/files/type17.go b/tests/files/type17.gno similarity index 100% rename from tests/files/type17.go rename to tests/files/type17.gno diff --git a/tests/files/type18.go b/tests/files/type18.gno similarity index 100% rename from tests/files/type18.go rename to tests/files/type18.gno diff --git a/tests/files/type19.go b/tests/files/type19.gno similarity index 100% rename from tests/files/type19.go rename to tests/files/type19.gno diff --git a/tests/files/type2.go b/tests/files/type2.gno similarity index 100% rename from tests/files/type2.go rename to tests/files/type2.gno diff --git a/tests/files/type20.go b/tests/files/type20.gno similarity index 100% rename from tests/files/type20.go rename to tests/files/type20.gno diff --git a/tests/files/type22.go b/tests/files/type22.gno similarity index 100% rename from tests/files/type22.go rename to tests/files/type22.gno diff --git a/tests/files/type23b.go b/tests/files/type23b.gno similarity index 100% rename from tests/files/type23b.go rename to tests/files/type23b.gno diff --git a/tests/files/type24b.go b/tests/files/type24b.gno similarity index 100% rename from tests/files/type24b.go rename to tests/files/type24b.gno diff --git a/tests/files/type3.go b/tests/files/type3.gno similarity index 100% rename from tests/files/type3.go rename to tests/files/type3.gno diff --git a/tests/files/type30.go b/tests/files/type30.gno similarity index 100% rename from tests/files/type30.go rename to tests/files/type30.gno diff --git a/tests/files/type31.go b/tests/files/type31.gno similarity index 100% rename from tests/files/type31.go rename to tests/files/type31.gno diff --git a/tests/files/type32.go b/tests/files/type32.gno similarity index 100% rename from tests/files/type32.go rename to tests/files/type32.gno diff --git a/tests/files/type7.go b/tests/files/type7.gno similarity index 100% rename from tests/files/type7.go rename to tests/files/type7.gno diff --git a/tests/files/type8.go b/tests/files/type8.gno similarity index 100% rename from tests/files/type8.go rename to tests/files/type8.gno diff --git a/tests/files/unary.go b/tests/files/unary.gno similarity index 100% rename from tests/files/unary.go rename to tests/files/unary.gno diff --git a/tests/files/unary1.go b/tests/files/unary1.gno similarity index 100% rename from tests/files/unary1.go rename to tests/files/unary1.gno diff --git a/tests/files/untyped0.go b/tests/files/untyped0.gno similarity index 100% rename from tests/files/untyped0.go rename to tests/files/untyped0.gno diff --git a/tests/files/untyped1.go b/tests/files/untyped1.gno similarity index 100% rename from tests/files/untyped1.go rename to tests/files/untyped1.gno diff --git a/tests/files/var.go b/tests/files/var.gno similarity index 100% rename from tests/files/var.go rename to tests/files/var.gno diff --git a/tests/files/var10.go b/tests/files/var10.gno similarity index 100% rename from tests/files/var10.go rename to tests/files/var10.gno diff --git a/tests/files/var11.go b/tests/files/var11.gno similarity index 100% rename from tests/files/var11.go rename to tests/files/var11.gno diff --git a/tests/files/var12.go b/tests/files/var12.gno similarity index 100% rename from tests/files/var12.go rename to tests/files/var12.gno diff --git a/tests/files/var13.go b/tests/files/var13.gno similarity index 100% rename from tests/files/var13.go rename to tests/files/var13.gno diff --git a/tests/files/var14.go b/tests/files/var14.gno similarity index 100% rename from tests/files/var14.go rename to tests/files/var14.gno diff --git a/tests/files/var15.go b/tests/files/var15.gno similarity index 100% rename from tests/files/var15.go rename to tests/files/var15.gno diff --git a/tests/files/var16.go b/tests/files/var16.gno similarity index 100% rename from tests/files/var16.go rename to tests/files/var16.gno diff --git a/tests/files/var17.go b/tests/files/var17.gno similarity index 100% rename from tests/files/var17.go rename to tests/files/var17.gno diff --git a/tests/files/var2.go b/tests/files/var2.gno similarity index 100% rename from tests/files/var2.go rename to tests/files/var2.gno diff --git a/tests/files/var3.go b/tests/files/var3.gno similarity index 100% rename from tests/files/var3.go rename to tests/files/var3.gno diff --git a/tests/files/var4.go b/tests/files/var4.gno similarity index 100% rename from tests/files/var4.go rename to tests/files/var4.gno diff --git a/tests/files/var5.go b/tests/files/var5.gno similarity index 100% rename from tests/files/var5.go rename to tests/files/var5.gno diff --git a/tests/files/var6.go b/tests/files/var6.gno similarity index 100% rename from tests/files/var6.go rename to tests/files/var6.gno diff --git a/tests/files/var7.go b/tests/files/var7.gno similarity index 100% rename from tests/files/var7.go rename to tests/files/var7.gno diff --git a/tests/files/var9.go b/tests/files/var9.gno similarity index 100% rename from tests/files/var9.go rename to tests/files/var9.gno diff --git a/tests/files/variadic.go b/tests/files/variadic.gno similarity index 100% rename from tests/files/variadic.go rename to tests/files/variadic.gno diff --git a/tests/files/variadic0.go b/tests/files/variadic0.gno similarity index 100% rename from tests/files/variadic0.go rename to tests/files/variadic0.gno diff --git a/tests/files/variadic1.go b/tests/files/variadic1.gno similarity index 100% rename from tests/files/variadic1.go rename to tests/files/variadic1.gno diff --git a/tests/files/variadic2.go b/tests/files/variadic2.gno similarity index 100% rename from tests/files/variadic2.go rename to tests/files/variadic2.gno diff --git a/tests/files/variadic3.go b/tests/files/variadic3.gno similarity index 100% rename from tests/files/variadic3.go rename to tests/files/variadic3.gno diff --git a/tests/files/variadic4.go b/tests/files/variadic4.gno similarity index 100% rename from tests/files/variadic4.go rename to tests/files/variadic4.gno diff --git a/tests/files/variadic5.go b/tests/files/variadic5.gno similarity index 100% rename from tests/files/variadic5.go rename to tests/files/variadic5.gno diff --git a/tests/files/variadic6.go b/tests/files/variadic6.gno similarity index 100% rename from tests/files/variadic6.go rename to tests/files/variadic6.gno diff --git a/tests/files/xfactor.go b/tests/files/xfactor.gno similarity index 100% rename from tests/files/xfactor.go rename to tests/files/xfactor.gno diff --git a/tests/files/xfib.go b/tests/files/xfib.gno similarity index 100% rename from tests/files/xfib.go rename to tests/files/xfib.gno diff --git a/tests/files/zavltree.go b/tests/files/zavltree.gno similarity index 100% rename from tests/files/zavltree.go rename to tests/files/zavltree.gno diff --git a/tests/files/zavltree0.go b/tests/files/zavltree0.gno similarity index 100% rename from tests/files/zavltree0.go rename to tests/files/zavltree0.gno diff --git a/tests/files/zavltree1.go b/tests/files/zavltree1.gno similarity index 100% rename from tests/files/zavltree1.go rename to tests/files/zavltree1.gno diff --git a/tests/files2/zrealm0.go b/tests/files/zrealm0.gno similarity index 96% rename from tests/files2/zrealm0.go rename to tests/files/zrealm0.gno index d5962a55f37..73020589e37 100644 --- a/tests/files2/zrealm0.go +++ b/tests/files/zrealm0.gno @@ -53,7 +53,7 @@ func main() { // "Escaped": true, // "ObjectID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:3" // }, -// "FileName": "main.go", +// "FileName": "main.gno", // "IsMethod": false, // "Name": "main", // "PkgPath": "gno.land/r/test", @@ -61,7 +61,7 @@ func main() { // "@type": "/gno.nref", // "BlockNode": null, // "Location": { -// "File": "main.go", +// "File": "main.gno", // "Line": "6", // "Nonce": "0", // "PkgPath": "gno.land/r/test" diff --git a/tests/files2/zrealm1.go b/tests/files/zrealm1.gno similarity index 98% rename from tests/files2/zrealm1.go rename to tests/files/zrealm1.gno index 9261b1a6219..15f105da9fe 100644 --- a/tests/files2/zrealm1.go +++ b/tests/files/zrealm1.gno @@ -165,7 +165,7 @@ func main() { // "Escaped": true, // "ObjectID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:3" // }, -// "FileName": "main.go", +// "FileName": "main.gno", // "IsMethod": false, // "Name": "main", // "PkgPath": "gno.land/r/test", @@ -173,7 +173,7 @@ func main() { // "@type": "/gno.nref", // "BlockNode": null, // "Location": { -// "File": "main.go", +// "File": "main.gno", // "Line": "15", // "Nonce": "0", // "PkgPath": "gno.land/r/test" diff --git a/tests/files/zrealm10.go b/tests/files/zrealm10.gno similarity index 100% rename from tests/files/zrealm10.go rename to tests/files/zrealm10.gno diff --git a/tests/files/zrealm11.go b/tests/files/zrealm11.gno similarity index 100% rename from tests/files/zrealm11.go rename to tests/files/zrealm11.gno diff --git a/tests/files/zrealm12.go b/tests/files/zrealm12.gno similarity index 100% rename from tests/files/zrealm12.go rename to tests/files/zrealm12.gno diff --git a/tests/files2/zrealm2.go b/tests/files/zrealm2.gno similarity index 97% rename from tests/files2/zrealm2.go rename to tests/files/zrealm2.gno index 49464ded2e4..1d614edf292 100644 --- a/tests/files2/zrealm2.go +++ b/tests/files/zrealm2.gno @@ -168,7 +168,7 @@ func main() { // "Escaped": true, // "ObjectID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:3" // }, -// "FileName": "main.go", +// "FileName": "main.gno", // "IsMethod": false, // "Name": "init.3", // "PkgPath": "gno.land/r/test", @@ -176,7 +176,7 @@ func main() { // "@type": "/gno.nref", // "BlockNode": null, // "Location": { -// "File": "main.go", +// "File": "main.gno", // "Line": "15", // "Nonce": "0", // "PkgPath": "gno.land/r/test" @@ -202,7 +202,7 @@ func main() { // "Escaped": true, // "ObjectID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:3" // }, -// "FileName": "main.go", +// "FileName": "main.gno", // "IsMethod": false, // "Name": "main", // "PkgPath": "gno.land/r/test", @@ -210,7 +210,7 @@ func main() { // "@type": "/gno.nref", // "BlockNode": null, // "Location": { -// "File": "main.go", +// "File": "main.gno", // "Line": "21", // "Nonce": "0", // "PkgPath": "gno.land/r/test" diff --git a/tests/files2/zrealm3.go b/tests/files/zrealm3.gno similarity index 97% rename from tests/files2/zrealm3.go rename to tests/files/zrealm3.gno index 31bf8cd80c1..6d6565171f9 100644 --- a/tests/files2/zrealm3.go +++ b/tests/files/zrealm3.gno @@ -169,7 +169,7 @@ func main() { // "Escaped": true, // "ObjectID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:3" // }, -// "FileName": "main.go", +// "FileName": "main.gno", // "IsMethod": false, // "Name": "init.2", // "PkgPath": "gno.land/r/test", @@ -177,7 +177,7 @@ func main() { // "@type": "/gno.nref", // "BlockNode": null, // "Location": { -// "File": "main.go", +// "File": "main.gno", // "Line": "14", // "Nonce": "0", // "PkgPath": "gno.land/r/test" @@ -203,7 +203,7 @@ func main() { // "Escaped": true, // "ObjectID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:3" // }, -// "FileName": "main.go", +// "FileName": "main.gno", // "IsMethod": false, // "Name": "main", // "PkgPath": "gno.land/r/test", @@ -211,7 +211,7 @@ func main() { // "@type": "/gno.nref", // "BlockNode": null, // "Location": { -// "File": "main.go", +// "File": "main.gno", // "Line": "20", // "Nonce": "0", // "PkgPath": "gno.land/r/test" diff --git a/tests/files2/zrealm4.go b/tests/files/zrealm4.gno similarity index 97% rename from tests/files2/zrealm4.go rename to tests/files/zrealm4.gno index c773b16965b..0046454485f 100644 --- a/tests/files2/zrealm4.go +++ b/tests/files/zrealm4.gno @@ -111,7 +111,7 @@ func main() { // "Escaped": true, // "ObjectID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:3" // }, -// "FileName": "main.go", +// "FileName": "main.gno", // "IsMethod": false, // "Name": "init.0", // "PkgPath": "gno.land/r/test", @@ -119,7 +119,7 @@ func main() { // "@type": "/gno.nref", // "BlockNode": null, // "Location": { -// "File": "main.go", +// "File": "main.gno", // "Line": "11", // "Nonce": "0", // "PkgPath": "gno.land/r/test" @@ -145,7 +145,7 @@ func main() { // "Escaped": true, // "ObjectID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:3" // }, -// "FileName": "main.go", +// "FileName": "main.gno", // "IsMethod": false, // "Name": "main", // "PkgPath": "gno.land/r/test", @@ -153,7 +153,7 @@ func main() { // "@type": "/gno.nref", // "BlockNode": null, // "Location": { -// "File": "main.go", +// "File": "main.gno", // "Line": "15", // "Nonce": "0", // "PkgPath": "gno.land/r/test" diff --git a/tests/files2/zrealm5.go b/tests/files/zrealm5.gno similarity index 97% rename from tests/files2/zrealm5.go rename to tests/files/zrealm5.gno index 33d3eb8b77a..ff0cc0d2d8c 100644 --- a/tests/files2/zrealm5.go +++ b/tests/files/zrealm5.gno @@ -182,7 +182,7 @@ func main() { // "Escaped": true, // "ObjectID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:3" // }, -// "FileName": "main.go", +// "FileName": "main.gno", // "IsMethod": false, // "Name": "init.0", // "PkgPath": "gno.land/r/test", @@ -190,7 +190,7 @@ func main() { // "@type": "/gno.nref", // "BlockNode": null, // "Location": { -// "File": "main.go", +// "File": "main.gno", // "Line": "11", // "Nonce": "0", // "PkgPath": "gno.land/r/test" @@ -216,7 +216,7 @@ func main() { // "Escaped": true, // "ObjectID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:3" // }, -// "FileName": "main.go", +// "FileName": "main.gno", // "IsMethod": false, // "Name": "main", // "PkgPath": "gno.land/r/test", @@ -224,7 +224,7 @@ func main() { // "@type": "/gno.nref", // "BlockNode": null, // "Location": { -// "File": "main.go", +// "File": "main.gno", // "Line": "15", // "Nonce": "0", // "PkgPath": "gno.land/r/test" diff --git a/tests/files2/zrealm6.go b/tests/files/zrealm6.gno similarity index 98% rename from tests/files2/zrealm6.go rename to tests/files/zrealm6.gno index f354e239ec6..64dd3fd5618 100644 --- a/tests/files2/zrealm6.go +++ b/tests/files/zrealm6.gno @@ -254,7 +254,7 @@ func main() { // "Escaped": true, // "ObjectID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:3" // }, -// "FileName": "main.go", +// "FileName": "main.gno", // "IsMethod": false, // "Name": "init.0", // "PkgPath": "gno.land/r/test", @@ -262,7 +262,7 @@ func main() { // "@type": "/gno.nref", // "BlockNode": null, // "Location": { -// "File": "main.go", +// "File": "main.gno", // "Line": "11", // "Nonce": "0", // "PkgPath": "gno.land/r/test" @@ -288,7 +288,7 @@ func main() { // "Escaped": true, // "ObjectID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:3" // }, -// "FileName": "main.go", +// "FileName": "main.gno", // "IsMethod": false, // "Name": "main", // "PkgPath": "gno.land/r/test", @@ -296,7 +296,7 @@ func main() { // "@type": "/gno.nref", // "BlockNode": null, // "Location": { -// "File": "main.go", +// "File": "main.gno", // "Line": "16", // "Nonce": "0", // "PkgPath": "gno.land/r/test" diff --git a/tests/files/zrealm7.go b/tests/files/zrealm7.gno similarity index 98% rename from tests/files/zrealm7.go rename to tests/files/zrealm7.gno index ec4e8f44c0f..ba7ef2a77ce 100644 --- a/tests/files/zrealm7.go +++ b/tests/files/zrealm7.gno @@ -326,7 +326,7 @@ func main() { // "Escaped": true, // "ObjectID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:3" // }, -// "FileName": "main.go", +// "FileName": "main.gno", // "IsMethod": false, // "Name": "init.0", // "PkgPath": "gno.land/r/test", @@ -334,7 +334,7 @@ func main() { // "@type": "/gno.nref", // "BlockNode": null, // "Location": { -// "File": "main.go", +// "File": "main.gno", // "Line": "11", // "Nonce": "0", // "PkgPath": "gno.land/r/test" @@ -360,7 +360,7 @@ func main() { // "Escaped": true, // "ObjectID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:3" // }, -// "FileName": "main.go", +// "FileName": "main.gno", // "IsMethod": false, // "Name": "main", // "PkgPath": "gno.land/r/test", @@ -368,7 +368,7 @@ func main() { // "@type": "/gno.nref", // "BlockNode": null, // "Location": { -// "File": "main.go", +// "File": "main.gno", // "Line": "17", // "Nonce": "0", // "PkgPath": "gno.land/r/test" diff --git a/tests/files/zrealm8.go b/tests/files/zrealm8.gno similarity index 100% rename from tests/files/zrealm8.go rename to tests/files/zrealm8.gno diff --git a/tests/files/zrealm9.go b/tests/files/zrealm9.gno similarity index 100% rename from tests/files/zrealm9.go rename to tests/files/zrealm9.gno diff --git a/tests/files/zrealm_avl0.go b/tests/files/zrealm_avl0.gno similarity index 98% rename from tests/files/zrealm_avl0.go rename to tests/files/zrealm_avl0.gno index 66b502569cf..ccff4cfc59d 100644 --- a/tests/files/zrealm_avl0.go +++ b/tests/files/zrealm_avl0.gno @@ -264,7 +264,7 @@ func main() { // "Escaped": true, // "ObjectID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:3" // }, -// "FileName": "main.go", +// "FileName": "main.gno", // "IsMethod": false, // "Name": "init.0", // "PkgPath": "gno.land/r/test", @@ -272,7 +272,7 @@ func main() { // "@type": "/gno.nref", // "BlockNode": null, // "Location": { -// "File": "main.go", +// "File": "main.gno", // "Line": "10", // "Nonce": "0", // "PkgPath": "gno.land/r/test" @@ -298,7 +298,7 @@ func main() { // "Escaped": true, // "ObjectID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:3" // }, -// "FileName": "main.go", +// "FileName": "main.gno", // "IsMethod": false, // "Name": "main", // "PkgPath": "gno.land/r/test", @@ -306,7 +306,7 @@ func main() { // "@type": "/gno.nref", // "BlockNode": null, // "Location": { -// "File": "main.go", +// "File": "main.gno", // "Line": "15", // "Nonce": "0", // "PkgPath": "gno.land/r/test" diff --git a/tests/files/zrealm_avl1.go b/tests/files/zrealm_avl1.gno similarity index 98% rename from tests/files/zrealm_avl1.go rename to tests/files/zrealm_avl1.gno index 85216b4f919..b79d9caba7d 100644 --- a/tests/files/zrealm_avl1.go +++ b/tests/files/zrealm_avl1.gno @@ -288,7 +288,7 @@ func main() { // "Escaped": true, // "ObjectID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:3" // }, -// "FileName": "main.go", +// "FileName": "main.gno", // "IsMethod": false, // "Name": "init.0", // "PkgPath": "gno.land/r/test", @@ -296,7 +296,7 @@ func main() { // "@type": "/gno.nref", // "BlockNode": null, // "Location": { -// "File": "main.go", +// "File": "main.gno", // "Line": "10", // "Nonce": "0", // "PkgPath": "gno.land/r/test" @@ -322,7 +322,7 @@ func main() { // "Escaped": true, // "ObjectID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:3" // }, -// "FileName": "main.go", +// "FileName": "main.gno", // "IsMethod": false, // "Name": "main", // "PkgPath": "gno.land/r/test", @@ -330,7 +330,7 @@ func main() { // "@type": "/gno.nref", // "BlockNode": null, // "Location": { -// "File": "main.go", +// "File": "main.gno", // "Line": "15", // "Nonce": "0", // "PkgPath": "gno.land/r/test" diff --git a/tests/files/zrealm_const.go b/tests/files/zrealm_const.gno similarity index 100% rename from tests/files/zrealm_const.go rename to tests/files/zrealm_const.gno diff --git a/tests/files/zrealm_crossrealm0.go b/tests/files/zrealm_crossrealm0.gno similarity index 100% rename from tests/files/zrealm_crossrealm0.go rename to tests/files/zrealm_crossrealm0.gno diff --git a/tests/files/zrealm_crossrealm1.go b/tests/files/zrealm_crossrealm1.gno similarity index 100% rename from tests/files/zrealm_crossrealm1.go rename to tests/files/zrealm_crossrealm1.gno diff --git a/tests/files/zrealm_crossrealm10.go b/tests/files/zrealm_crossrealm10.gno similarity index 100% rename from tests/files/zrealm_crossrealm10.go rename to tests/files/zrealm_crossrealm10.gno diff --git a/tests/files/zrealm_crossrealm2.go b/tests/files/zrealm_crossrealm2.gno similarity index 100% rename from tests/files/zrealm_crossrealm2.go rename to tests/files/zrealm_crossrealm2.gno diff --git a/tests/files/zrealm_crossrealm3.go b/tests/files/zrealm_crossrealm3.gno similarity index 100% rename from tests/files/zrealm_crossrealm3.go rename to tests/files/zrealm_crossrealm3.gno diff --git a/tests/files/zrealm_crossrealm4.go b/tests/files/zrealm_crossrealm4.gno similarity index 100% rename from tests/files/zrealm_crossrealm4.go rename to tests/files/zrealm_crossrealm4.gno diff --git a/tests/files/zrealm_crossrealm5.go b/tests/files/zrealm_crossrealm5.gno similarity index 100% rename from tests/files/zrealm_crossrealm5.go rename to tests/files/zrealm_crossrealm5.gno diff --git a/tests/files/zrealm_crossrealm6.go b/tests/files/zrealm_crossrealm6.gno similarity index 100% rename from tests/files/zrealm_crossrealm6.go rename to tests/files/zrealm_crossrealm6.gno diff --git a/tests/files/zrealm_crossrealm7.go b/tests/files/zrealm_crossrealm7.gno similarity index 100% rename from tests/files/zrealm_crossrealm7.go rename to tests/files/zrealm_crossrealm7.gno diff --git a/tests/files/zrealm_crossrealm8.go b/tests/files/zrealm_crossrealm8.gno similarity index 100% rename from tests/files/zrealm_crossrealm8.go rename to tests/files/zrealm_crossrealm8.gno diff --git a/tests/files/zrealm_crossrealm9.go b/tests/files/zrealm_crossrealm9.gno similarity index 100% rename from tests/files/zrealm_crossrealm9.go rename to tests/files/zrealm_crossrealm9.gno diff --git a/tests/files/zrealm_example.go b/tests/files/zrealm_example.gno similarity index 100% rename from tests/files/zrealm_example.go rename to tests/files/zrealm_example.gno diff --git a/tests/files/zrealm_map0.go b/tests/files/zrealm_map0.gno similarity index 100% rename from tests/files/zrealm_map0.go rename to tests/files/zrealm_map0.gno diff --git a/tests/files/zrealm_std0.go b/tests/files/zrealm_std0.gno similarity index 100% rename from tests/files/zrealm_std0.go rename to tests/files/zrealm_std0.gno diff --git a/tests/files/zrealm_std1.go b/tests/files/zrealm_std1.gno similarity index 100% rename from tests/files/zrealm_std1.go rename to tests/files/zrealm_std1.gno diff --git a/tests/files2/zrealm_std2.go b/tests/files/zrealm_std2.gno similarity index 93% rename from tests/files2/zrealm_std2.go rename to tests/files/zrealm_std2.gno index 2f3428dcbbc..68c09a741d8 100644 --- a/tests/files2/zrealm_std2.go +++ b/tests/files/zrealm_std2.gno @@ -5,7 +5,7 @@ import ( "std" ) -// Like zrealm_std1.go but interface var. +// Like zrealm_std1.gno but interface var. var aset std.AddressSet func init() { diff --git a/tests/files/zrealm_std3.go b/tests/files/zrealm_std3.gno similarity index 100% rename from tests/files/zrealm_std3.go rename to tests/files/zrealm_std3.gno diff --git a/tests/files/zrealm_std4.go b/tests/files/zrealm_std4.gno similarity index 100% rename from tests/files/zrealm_std4.go rename to tests/files/zrealm_std4.gno diff --git a/tests/files/zrealm_std5.go b/tests/files/zrealm_std5.gno similarity index 100% rename from tests/files/zrealm_std5.go rename to tests/files/zrealm_std5.gno diff --git a/tests/files/zrealm_testutils0.go b/tests/files/zrealm_testutils0.gno similarity index 100% rename from tests/files/zrealm_testutils0.go rename to tests/files/zrealm_testutils0.gno diff --git a/tests/files/zsolitaire_long.go b/tests/files/zsolitaire_long.gno similarity index 100% rename from tests/files/zsolitaire_long.go rename to tests/files/zsolitaire_long.gno diff --git a/tests/files2/a1.go b/tests/files2/a1.gno similarity index 100% rename from tests/files2/a1.go rename to tests/files2/a1.gno diff --git a/tests/files2/a10.go b/tests/files2/a10.gno similarity index 100% rename from tests/files2/a10.go rename to tests/files2/a10.gno diff --git a/tests/files2/a11.go b/tests/files2/a11.gno similarity index 100% rename from tests/files2/a11.go rename to tests/files2/a11.gno diff --git a/tests/files2/a12.go b/tests/files2/a12.gno similarity index 100% rename from tests/files2/a12.go rename to tests/files2/a12.gno diff --git a/tests/files2/a13.go b/tests/files2/a13.gno similarity index 100% rename from tests/files2/a13.go rename to tests/files2/a13.gno diff --git a/tests/files2/a14.go b/tests/files2/a14.gno similarity index 100% rename from tests/files2/a14.go rename to tests/files2/a14.gno diff --git a/tests/files2/a15.go b/tests/files2/a15.gno similarity index 100% rename from tests/files2/a15.go rename to tests/files2/a15.gno diff --git a/tests/files2/a16.go b/tests/files2/a16.gno similarity index 100% rename from tests/files2/a16.go rename to tests/files2/a16.gno diff --git a/tests/files2/a17.go b/tests/files2/a17.gno similarity index 100% rename from tests/files2/a17.go rename to tests/files2/a17.gno diff --git a/tests/files2/a18.go b/tests/files2/a18.gno similarity index 100% rename from tests/files2/a18.go rename to tests/files2/a18.gno diff --git a/tests/files2/a19.go b/tests/files2/a19.gno similarity index 100% rename from tests/files2/a19.go rename to tests/files2/a19.gno diff --git a/tests/files2/a2.go b/tests/files2/a2.gno similarity index 100% rename from tests/files2/a2.go rename to tests/files2/a2.gno diff --git a/tests/files2/a20.go b/tests/files2/a20.gno similarity index 100% rename from tests/files2/a20.go rename to tests/files2/a20.gno diff --git a/tests/files2/a21.go b/tests/files2/a21.gno similarity index 100% rename from tests/files2/a21.go rename to tests/files2/a21.gno diff --git a/tests/files2/a22.go b/tests/files2/a22.gno similarity index 100% rename from tests/files2/a22.go rename to tests/files2/a22.gno diff --git a/tests/files2/a23.go b/tests/files2/a23.gno similarity index 100% rename from tests/files2/a23.go rename to tests/files2/a23.gno diff --git a/tests/files2/a24.go b/tests/files2/a24.gno similarity index 100% rename from tests/files2/a24.go rename to tests/files2/a24.gno diff --git a/tests/files2/a25.go b/tests/files2/a25.gno similarity index 100% rename from tests/files2/a25.go rename to tests/files2/a25.gno diff --git a/tests/files2/a26.go b/tests/files2/a26.gno similarity index 100% rename from tests/files2/a26.go rename to tests/files2/a26.gno diff --git a/tests/files2/a27.go b/tests/files2/a27.gno similarity index 100% rename from tests/files2/a27.go rename to tests/files2/a27.gno diff --git a/tests/files2/a28.go b/tests/files2/a28.gno similarity index 100% rename from tests/files2/a28.go rename to tests/files2/a28.gno diff --git a/tests/files2/a29.go b/tests/files2/a29.gno similarity index 100% rename from tests/files2/a29.go rename to tests/files2/a29.gno diff --git a/tests/files2/a3.go b/tests/files2/a3.gno similarity index 100% rename from tests/files2/a3.go rename to tests/files2/a3.gno diff --git a/tests/files2/a30.go b/tests/files2/a30.gno similarity index 100% rename from tests/files2/a30.go rename to tests/files2/a30.gno diff --git a/tests/files2/a31.go b/tests/files2/a31.gno similarity index 100% rename from tests/files2/a31.go rename to tests/files2/a31.gno diff --git a/tests/files2/a32.go b/tests/files2/a32.gno similarity index 100% rename from tests/files2/a32.go rename to tests/files2/a32.gno diff --git a/tests/files2/a33.go b/tests/files2/a33.gno similarity index 100% rename from tests/files2/a33.go rename to tests/files2/a33.gno diff --git a/tests/files2/a34.go b/tests/files2/a34.gno similarity index 100% rename from tests/files2/a34.go rename to tests/files2/a34.gno diff --git a/tests/files2/a35.go b/tests/files2/a35.gno similarity index 100% rename from tests/files2/a35.go rename to tests/files2/a35.gno diff --git a/tests/files2/a36.go b/tests/files2/a36.gno similarity index 100% rename from tests/files2/a36.go rename to tests/files2/a36.gno diff --git a/tests/files2/a37.go b/tests/files2/a37.gno similarity index 100% rename from tests/files2/a37.go rename to tests/files2/a37.gno diff --git a/tests/files2/a38.go b/tests/files2/a38.gno similarity index 100% rename from tests/files2/a38.go rename to tests/files2/a38.gno diff --git a/tests/files2/a39.go b/tests/files2/a39.gno similarity index 100% rename from tests/files2/a39.go rename to tests/files2/a39.gno diff --git a/tests/files2/a4.go b/tests/files2/a4.gno similarity index 100% rename from tests/files2/a4.go rename to tests/files2/a4.gno diff --git a/tests/files2/a40.go b/tests/files2/a40.gno similarity index 100% rename from tests/files2/a40.go rename to tests/files2/a40.gno diff --git a/tests/files2/a41.go b/tests/files2/a41.gno similarity index 100% rename from tests/files2/a41.go rename to tests/files2/a41.gno diff --git a/tests/files2/a42.go b/tests/files2/a42.gno similarity index 100% rename from tests/files2/a42.go rename to tests/files2/a42.gno diff --git a/tests/files2/a43.go b/tests/files2/a43.gno similarity index 100% rename from tests/files2/a43.go rename to tests/files2/a43.gno diff --git a/tests/files2/a44.go b/tests/files2/a44.gno similarity index 100% rename from tests/files2/a44.go rename to tests/files2/a44.gno diff --git a/tests/files2/a45.go b/tests/files2/a45.gno similarity index 100% rename from tests/files2/a45.go rename to tests/files2/a45.gno diff --git a/tests/files2/a45a.go b/tests/files2/a45a.gno similarity index 100% rename from tests/files2/a45a.go rename to tests/files2/a45a.gno diff --git a/tests/files2/a46.go b/tests/files2/a46.gno similarity index 100% rename from tests/files2/a46.go rename to tests/files2/a46.gno diff --git a/tests/files2/a5.go b/tests/files2/a5.gno similarity index 100% rename from tests/files2/a5.go rename to tests/files2/a5.gno diff --git a/tests/files2/a6.go b/tests/files2/a6.gno similarity index 100% rename from tests/files2/a6.go rename to tests/files2/a6.gno diff --git a/tests/files2/a7.go b/tests/files2/a7.gno similarity index 100% rename from tests/files2/a7.go rename to tests/files2/a7.gno diff --git a/tests/files2/a8.go b/tests/files2/a8.gno similarity index 100% rename from tests/files2/a8.go rename to tests/files2/a8.gno diff --git a/tests/files2/a9.go b/tests/files2/a9.gno similarity index 100% rename from tests/files2/a9.go rename to tests/files2/a9.gno diff --git a/tests/files2/add0.go b/tests/files2/add0.gno similarity index 100% rename from tests/files2/add0.go rename to tests/files2/add0.gno diff --git a/tests/files2/add1.go b/tests/files2/add1.gno similarity index 100% rename from tests/files2/add1.go rename to tests/files2/add1.gno diff --git a/tests/files2/add2.go b/tests/files2/add2.gno similarity index 100% rename from tests/files2/add2.go rename to tests/files2/add2.gno diff --git a/tests/files2/addr0b.go b/tests/files2/addr0b.gno similarity index 100% rename from tests/files2/addr0b.go rename to tests/files2/addr0b.gno diff --git a/tests/files2/addr1.go b/tests/files2/addr1.gno similarity index 100% rename from tests/files2/addr1.go rename to tests/files2/addr1.gno diff --git a/tests/files2/addr2b.go b/tests/files2/addr2b.gno similarity index 100% rename from tests/files2/addr2b.go rename to tests/files2/addr2b.gno diff --git a/tests/files2/alias0.go b/tests/files2/alias0.gno similarity index 100% rename from tests/files2/alias0.go rename to tests/files2/alias0.gno diff --git a/tests/files2/alias1.go b/tests/files2/alias1.gno similarity index 100% rename from tests/files2/alias1.go rename to tests/files2/alias1.gno diff --git a/tests/files2/and.go b/tests/files2/and.gno similarity index 100% rename from tests/files2/and.go rename to tests/files2/and.gno diff --git a/tests/files2/and0.go b/tests/files2/and0.gno similarity index 100% rename from tests/files2/and0.go rename to tests/files2/and0.gno diff --git a/tests/files2/and1.go b/tests/files2/and1.gno similarity index 100% rename from tests/files2/and1.go rename to tests/files2/and1.gno diff --git a/tests/files2/and2.go b/tests/files2/and2.gno similarity index 100% rename from tests/files2/and2.go rename to tests/files2/and2.gno diff --git a/tests/files2/and3.go b/tests/files2/and3.gno similarity index 100% rename from tests/files2/and3.go rename to tests/files2/and3.gno diff --git a/tests/files2/append0.go b/tests/files2/append0.gno similarity index 100% rename from tests/files2/append0.go rename to tests/files2/append0.gno diff --git a/tests/files2/append1.go b/tests/files2/append1.gno similarity index 100% rename from tests/files2/append1.go rename to tests/files2/append1.gno diff --git a/tests/files2/append2.go b/tests/files2/append2.gno similarity index 100% rename from tests/files2/append2.go rename to tests/files2/append2.gno diff --git a/tests/files2/assign.go b/tests/files2/assign.gno similarity index 100% rename from tests/files2/assign.go rename to tests/files2/assign.gno diff --git a/tests/files2/assign0b.go b/tests/files2/assign0b.gno similarity index 100% rename from tests/files2/assign0b.go rename to tests/files2/assign0b.gno diff --git a/tests/files2/assign1.go b/tests/files2/assign1.gno similarity index 100% rename from tests/files2/assign1.go rename to tests/files2/assign1.gno diff --git a/tests/files2/assign10.go b/tests/files2/assign10.gno similarity index 100% rename from tests/files2/assign10.go rename to tests/files2/assign10.gno diff --git a/tests/files2/assign11.go b/tests/files2/assign11.gno similarity index 100% rename from tests/files2/assign11.go rename to tests/files2/assign11.gno diff --git a/tests/files2/assign12.go b/tests/files2/assign12.gno similarity index 100% rename from tests/files2/assign12.go rename to tests/files2/assign12.gno diff --git a/tests/files2/assign16.go b/tests/files2/assign16.gno similarity index 100% rename from tests/files2/assign16.go rename to tests/files2/assign16.gno diff --git a/tests/files2/assign2.go b/tests/files2/assign2.gno similarity index 100% rename from tests/files2/assign2.go rename to tests/files2/assign2.gno diff --git a/tests/files2/assign3.go b/tests/files2/assign3.gno similarity index 100% rename from tests/files2/assign3.go rename to tests/files2/assign3.gno diff --git a/tests/files2/assign4.go b/tests/files2/assign4.gno similarity index 100% rename from tests/files2/assign4.go rename to tests/files2/assign4.gno diff --git a/tests/files2/assign5.go b/tests/files2/assign5.gno similarity index 100% rename from tests/files2/assign5.go rename to tests/files2/assign5.gno diff --git a/tests/files2/assign8.go b/tests/files2/assign8.gno similarity index 100% rename from tests/files2/assign8.go rename to tests/files2/assign8.gno diff --git a/tests/files2/assign9.go b/tests/files2/assign9.gno similarity index 100% rename from tests/files2/assign9.go rename to tests/files2/assign9.gno diff --git a/tests/files2/bin.go b/tests/files2/bin.gno similarity index 100% rename from tests/files2/bin.go rename to tests/files2/bin.gno diff --git a/tests/files2/bin0.go b/tests/files2/bin0.gno similarity index 100% rename from tests/files2/bin0.go rename to tests/files2/bin0.gno diff --git a/tests/files2/bin1.go b/tests/files2/bin1.gno similarity index 100% rename from tests/files2/bin1.go rename to tests/files2/bin1.gno diff --git a/tests/files2/bin3.go b/tests/files2/bin3.gno similarity index 100% rename from tests/files2/bin3.go rename to tests/files2/bin3.gno diff --git a/tests/files2/bin4.go b/tests/files2/bin4.gno similarity index 100% rename from tests/files2/bin4.go rename to tests/files2/bin4.gno diff --git a/tests/files2/bin5.go b/tests/files2/bin5.gno similarity index 100% rename from tests/files2/bin5.go rename to tests/files2/bin5.gno diff --git a/tests/files2/binstruct_ptr_map0.go b/tests/files2/binstruct_ptr_map0.gno similarity index 100% rename from tests/files2/binstruct_ptr_map0.go rename to tests/files2/binstruct_ptr_map0.gno diff --git a/tests/files2/binstruct_ptr_slice0.go b/tests/files2/binstruct_ptr_slice0.gno similarity index 100% rename from tests/files2/binstruct_ptr_slice0.go rename to tests/files2/binstruct_ptr_slice0.gno diff --git a/tests/files2/binstruct_slice0.go b/tests/files2/binstruct_slice0.gno similarity index 100% rename from tests/files2/binstruct_slice0.go rename to tests/files2/binstruct_slice0.gno diff --git a/tests/files2/bltn.go b/tests/files2/bltn.gno similarity index 100% rename from tests/files2/bltn.go rename to tests/files2/bltn.gno diff --git a/tests/files2/bltn0.go b/tests/files2/bltn0.gno similarity index 100% rename from tests/files2/bltn0.go rename to tests/files2/bltn0.gno diff --git a/tests/files2/bool.go b/tests/files2/bool.gno similarity index 100% rename from tests/files2/bool.go rename to tests/files2/bool.gno diff --git a/tests/files2/bool0.go b/tests/files2/bool0.gno similarity index 100% rename from tests/files2/bool0.go rename to tests/files2/bool0.gno diff --git a/tests/files2/bool1.go b/tests/files2/bool1.gno similarity index 100% rename from tests/files2/bool1.go rename to tests/files2/bool1.gno diff --git a/tests/files2/bool2.go b/tests/files2/bool2.gno similarity index 100% rename from tests/files2/bool2.go rename to tests/files2/bool2.gno diff --git a/tests/files2/bool3.go b/tests/files2/bool3.gno similarity index 100% rename from tests/files2/bool3.go rename to tests/files2/bool3.gno diff --git a/tests/files2/bool4.go b/tests/files2/bool4.gno similarity index 100% rename from tests/files2/bool4.go rename to tests/files2/bool4.gno diff --git a/tests/files2/bool5.go b/tests/files2/bool5.gno similarity index 100% rename from tests/files2/bool5.go rename to tests/files2/bool5.gno diff --git a/tests/files2/build0.go b/tests/files2/build0.gno similarity index 71% rename from tests/files2/build0.go rename to tests/files2/build0.gno index 5c933e9d580..efa57126859 100644 --- a/tests/files2/build0.go +++ b/tests/files2/build0.gno @@ -1,5 +1,6 @@ // A test program +//go:build ((darwin && linux) || !arm) && (go1.12 || !go1.13) // +build darwin,linux !arm // +build go1.12 !go1.13 diff --git a/tests/files2/cap0.go b/tests/files2/cap0.gno similarity index 100% rename from tests/files2/cap0.go rename to tests/files2/cap0.gno diff --git a/tests/files2/closure0.go b/tests/files2/closure0.gno similarity index 100% rename from tests/files2/closure0.go rename to tests/files2/closure0.gno diff --git a/tests/files2/closure1.go b/tests/files2/closure1.gno similarity index 100% rename from tests/files2/closure1.go rename to tests/files2/closure1.gno diff --git a/tests/files2/closure2.go b/tests/files2/closure2.gno similarity index 100% rename from tests/files2/closure2.go rename to tests/files2/closure2.gno diff --git a/tests/files2/closure3.go b/tests/files2/closure3.gno similarity index 100% rename from tests/files2/closure3.go rename to tests/files2/closure3.gno diff --git a/tests/files2/closure4.go b/tests/files2/closure4.gno similarity index 100% rename from tests/files2/closure4.go rename to tests/files2/closure4.gno diff --git a/tests/files2/closure5.go b/tests/files2/closure5.gno similarity index 100% rename from tests/files2/closure5.go rename to tests/files2/closure5.gno diff --git a/tests/files2/closure6.go b/tests/files2/closure6.gno similarity index 100% rename from tests/files2/closure6.go rename to tests/files2/closure6.gno diff --git a/tests/files2/closure7.go b/tests/files2/closure7.gno similarity index 100% rename from tests/files2/closure7.go rename to tests/files2/closure7.gno diff --git a/tests/files2/closure8.go b/tests/files2/closure8.gno similarity index 100% rename from tests/files2/closure8.go rename to tests/files2/closure8.gno diff --git a/tests/files2/comp1.go b/tests/files2/comp1.gno similarity index 100% rename from tests/files2/comp1.go rename to tests/files2/comp1.gno diff --git a/tests/files2/comp2.go b/tests/files2/comp2.gno similarity index 100% rename from tests/files2/comp2.go rename to tests/files2/comp2.gno diff --git a/tests/files2/composite0.go b/tests/files2/composite0.gno similarity index 78% rename from tests/files2/composite0.go rename to tests/files2/composite0.gno index 679d1f0e652..ae518782902 100644 --- a/tests/files2/composite0.go +++ b/tests/files2/composite0.gno @@ -6,7 +6,7 @@ var a = &[]*T{} // NOTE: // lowercase fields don't work with native funcs. -// see tests/files/composite0b.go for gno println. +// see tests/files/composite0b.gno for gno println. type T struct{ Name string } func main() { diff --git a/tests/files2/composite1.go b/tests/files2/composite1.gno similarity index 78% rename from tests/files2/composite1.go rename to tests/files2/composite1.gno index 1448ead647f..8e3366a05b0 100644 --- a/tests/files2/composite1.go +++ b/tests/files2/composite1.gno @@ -6,7 +6,7 @@ var a = &[]*T{{}} // NOTE: // lowercase fields don't work with native funcs. -// see tests/files/composite1b.go for gno println. +// see tests/files/composite1b.gno for gno println. type T struct{ Name string } func main() { diff --git a/tests/files2/composite10.go b/tests/files2/composite10.gno similarity index 100% rename from tests/files2/composite10.go rename to tests/files2/composite10.gno diff --git a/tests/files2/composite11.go b/tests/files2/composite11.gno similarity index 100% rename from tests/files2/composite11.go rename to tests/files2/composite11.gno diff --git a/tests/files2/composite12.go b/tests/files2/composite12.gno similarity index 100% rename from tests/files2/composite12.go rename to tests/files2/composite12.gno diff --git a/tests/files2/composite13.go b/tests/files2/composite13.gno similarity index 100% rename from tests/files2/composite13.go rename to tests/files2/composite13.gno diff --git a/tests/files2/composite14.go b/tests/files2/composite14.gno similarity index 100% rename from tests/files2/composite14.go rename to tests/files2/composite14.gno diff --git a/tests/files2/composite15.go b/tests/files2/composite15.gno similarity index 100% rename from tests/files2/composite15.go rename to tests/files2/composite15.gno diff --git a/tests/files2/composite16.go b/tests/files2/composite16.gno similarity index 100% rename from tests/files2/composite16.go rename to tests/files2/composite16.gno diff --git a/tests/files2/composite17.go b/tests/files2/composite17.gno similarity index 100% rename from tests/files2/composite17.go rename to tests/files2/composite17.gno diff --git a/tests/files2/composite2.go b/tests/files2/composite2.gno similarity index 100% rename from tests/files2/composite2.go rename to tests/files2/composite2.gno diff --git a/tests/files2/composite3.go b/tests/files2/composite3.gno similarity index 100% rename from tests/files2/composite3.go rename to tests/files2/composite3.gno diff --git a/tests/files2/composite4.go b/tests/files2/composite4.gno similarity index 100% rename from tests/files2/composite4.go rename to tests/files2/composite4.gno diff --git a/tests/files2/composite5.go b/tests/files2/composite5.gno similarity index 100% rename from tests/files2/composite5.go rename to tests/files2/composite5.gno diff --git a/tests/files2/composite6.go b/tests/files2/composite6.gno similarity index 100% rename from tests/files2/composite6.go rename to tests/files2/composite6.gno diff --git a/tests/files2/composite7.go b/tests/files2/composite7.gno similarity index 100% rename from tests/files2/composite7.go rename to tests/files2/composite7.gno diff --git a/tests/files2/composite8.go b/tests/files2/composite8.gno similarity index 100% rename from tests/files2/composite8.go rename to tests/files2/composite8.gno diff --git a/tests/files2/composite8bis.go b/tests/files2/composite8bis.gno similarity index 100% rename from tests/files2/composite8bis.go rename to tests/files2/composite8bis.gno diff --git a/tests/files2/composite9.go b/tests/files2/composite9.gno similarity index 77% rename from tests/files2/composite9.go rename to tests/files2/composite9.gno index 83efa882b03..de95b9c7b55 100644 --- a/tests/files2/composite9.go +++ b/tests/files2/composite9.gno @@ -3,7 +3,7 @@ package main import "fmt" func main() { - a := [][]int{make([]int,0)} + a := [][]int{make([]int, 0)} for _, b := range a { fmt.Println(b) diff --git a/tests/files2/const0.go b/tests/files2/const0.gno similarity index 100% rename from tests/files2/const0.go rename to tests/files2/const0.gno diff --git a/tests/files2/const1.go b/tests/files2/const1.gno similarity index 100% rename from tests/files2/const1.go rename to tests/files2/const1.gno diff --git a/tests/files2/const10.go b/tests/files2/const10.gno similarity index 100% rename from tests/files2/const10.go rename to tests/files2/const10.gno diff --git a/tests/files2/const11.go b/tests/files2/const11.gno similarity index 100% rename from tests/files2/const11.go rename to tests/files2/const11.gno diff --git a/tests/files2/const12.go b/tests/files2/const12.gno similarity index 100% rename from tests/files2/const12.go rename to tests/files2/const12.gno diff --git a/tests/files2/const13.go b/tests/files2/const13.gno similarity index 100% rename from tests/files2/const13.go rename to tests/files2/const13.gno diff --git a/tests/files2/const14.go b/tests/files2/const14.gno similarity index 100% rename from tests/files2/const14.go rename to tests/files2/const14.gno diff --git a/tests/files2/const15.go b/tests/files2/const15.gno similarity index 100% rename from tests/files2/const15.go rename to tests/files2/const15.gno diff --git a/tests/files2/const16.go b/tests/files2/const16.gno similarity index 100% rename from tests/files2/const16.go rename to tests/files2/const16.gno diff --git a/tests/files2/const17.go b/tests/files2/const17.gno similarity index 64% rename from tests/files2/const17.go rename to tests/files2/const17.gno index 45d741a72f5..06a532ff47e 100644 --- a/tests/files2/const17.go +++ b/tests/files2/const17.gno @@ -2,11 +2,11 @@ package main import "fmt" -var t [7/3]int +var t [7 / 3]int func main() { - t[0] = 3/2 - t[1] = 5/2 + t[0] = 3 / 2 + t[1] = 5 / 2 fmt.Println(t) } diff --git a/tests/files2/const18.go b/tests/files2/const18.gno similarity index 100% rename from tests/files2/const18.go rename to tests/files2/const18.gno diff --git a/tests/files2/const19.go b/tests/files2/const19.gno similarity index 100% rename from tests/files2/const19.go rename to tests/files2/const19.gno diff --git a/tests/files2/const2.go b/tests/files2/const2.gno similarity index 100% rename from tests/files2/const2.go rename to tests/files2/const2.gno diff --git a/tests/files2/const20.go b/tests/files2/const20.gno similarity index 100% rename from tests/files2/const20.go rename to tests/files2/const20.gno diff --git a/tests/files2/const21.go b/tests/files2/const21.gno similarity index 100% rename from tests/files2/const21.go rename to tests/files2/const21.gno diff --git a/tests/files2/const3.go b/tests/files2/const3.gno similarity index 100% rename from tests/files2/const3.go rename to tests/files2/const3.gno diff --git a/tests/files2/const4.go b/tests/files2/const4.gno similarity index 100% rename from tests/files2/const4.go rename to tests/files2/const4.gno diff --git a/tests/files2/const5.go b/tests/files2/const5.gno similarity index 100% rename from tests/files2/const5.go rename to tests/files2/const5.gno diff --git a/tests/files2/const6.go b/tests/files2/const6.gno similarity index 100% rename from tests/files2/const6.go rename to tests/files2/const6.gno diff --git a/tests/files2/const7.go b/tests/files2/const7.gno similarity index 100% rename from tests/files2/const7.go rename to tests/files2/const7.gno diff --git a/tests/files2/const8.go b/tests/files2/const8.gno similarity index 100% rename from tests/files2/const8.go rename to tests/files2/const8.gno diff --git a/tests/files2/const9.go b/tests/files2/const9.gno similarity index 100% rename from tests/files2/const9.go rename to tests/files2/const9.gno diff --git a/tests/files2/cont.go b/tests/files2/cont.gno similarity index 100% rename from tests/files2/cont.go rename to tests/files2/cont.gno diff --git a/tests/files2/cont0.go b/tests/files2/cont0.gno similarity index 100% rename from tests/files2/cont0.go rename to tests/files2/cont0.gno diff --git a/tests/files2/cont1.go b/tests/files2/cont1.gno similarity index 100% rename from tests/files2/cont1.go rename to tests/files2/cont1.gno diff --git a/tests/files2/context.go b/tests/files2/context.gno similarity index 100% rename from tests/files2/context.go rename to tests/files2/context.gno diff --git a/tests/files2/context2.go b/tests/files2/context2.gno similarity index 100% rename from tests/files2/context2.go rename to tests/files2/context2.gno diff --git a/tests/files2/convert0.go b/tests/files2/convert0.gno similarity index 100% rename from tests/files2/convert0.go rename to tests/files2/convert0.gno diff --git a/tests/files2/convert1.go b/tests/files2/convert1.gno similarity index 100% rename from tests/files2/convert1.go rename to tests/files2/convert1.gno diff --git a/tests/files2/convert3.go b/tests/files2/convert3.gno similarity index 100% rename from tests/files2/convert3.go rename to tests/files2/convert3.gno diff --git a/tests/files2/copy0.go b/tests/files2/copy0.gno similarity index 100% rename from tests/files2/copy0.go rename to tests/files2/copy0.gno diff --git a/tests/files2/copy1.go b/tests/files2/copy1.gno similarity index 100% rename from tests/files2/copy1.go rename to tests/files2/copy1.gno diff --git a/tests/files2/copy2.go b/tests/files2/copy2.gno similarity index 100% rename from tests/files2/copy2.go rename to tests/files2/copy2.gno diff --git a/tests/files2/defer0.go b/tests/files2/defer0.gno similarity index 100% rename from tests/files2/defer0.go rename to tests/files2/defer0.gno diff --git a/tests/files2/defer1.go b/tests/files2/defer1.gno similarity index 100% rename from tests/files2/defer1.go rename to tests/files2/defer1.gno diff --git a/tests/files2/defer2.go b/tests/files2/defer2.gno similarity index 100% rename from tests/files2/defer2.go rename to tests/files2/defer2.gno diff --git a/tests/files2/defer3.go b/tests/files2/defer3.gno similarity index 100% rename from tests/files2/defer3.go rename to tests/files2/defer3.gno diff --git a/tests/files2/defer4.go b/tests/files2/defer4.gno similarity index 100% rename from tests/files2/defer4.go rename to tests/files2/defer4.gno diff --git a/tests/files2/defer5.go b/tests/files2/defer5.gno similarity index 100% rename from tests/files2/defer5.go rename to tests/files2/defer5.gno diff --git a/tests/files2/defer6.go b/tests/files2/defer6.gno similarity index 100% rename from tests/files2/defer6.go rename to tests/files2/defer6.gno diff --git a/tests/files2/defer7.go b/tests/files2/defer7.gno similarity index 100% rename from tests/files2/defer7.go rename to tests/files2/defer7.gno diff --git a/tests/files2/defer8.go b/tests/files2/defer8.gno similarity index 100% rename from tests/files2/defer8.go rename to tests/files2/defer8.gno diff --git a/tests/files2/define0.go b/tests/files2/define0.gno similarity index 100% rename from tests/files2/define0.go rename to tests/files2/define0.gno diff --git a/tests/files2/define1.go b/tests/files2/define1.gno similarity index 100% rename from tests/files2/define1.go rename to tests/files2/define1.gno diff --git a/tests/files2/define2.go b/tests/files2/define2.gno similarity index 100% rename from tests/files2/define2.go rename to tests/files2/define2.gno diff --git a/tests/files2/define3.go b/tests/files2/define3.gno similarity index 100% rename from tests/files2/define3.go rename to tests/files2/define3.gno diff --git a/tests/files2/define4.go b/tests/files2/define4.gno similarity index 100% rename from tests/files2/define4.go rename to tests/files2/define4.gno diff --git a/tests/files2/delete0.go b/tests/files2/delete0.gno similarity index 100% rename from tests/files2/delete0.go rename to tests/files2/delete0.gno diff --git a/tests/files2/errors.go b/tests/files2/errors.gno similarity index 100% rename from tests/files2/errors.go rename to tests/files2/errors.gno diff --git a/tests/files2/extern/b1/foo/foo.go b/tests/files2/extern/b1/foo/foo.gno similarity index 100% rename from tests/files2/extern/b1/foo/foo.go rename to tests/files2/extern/b1/foo/foo.gno diff --git a/tests/files2/extern/b2/foo/foo.go b/tests/files2/extern/b2/foo/foo.gno similarity index 100% rename from tests/files2/extern/b2/foo/foo.go rename to tests/files2/extern/b2/foo/foo.gno diff --git a/tests/files2/extern/bar/quux.go b/tests/files2/extern/bar/quux.gno similarity index 100% rename from tests/files2/extern/bar/quux.go rename to tests/files2/extern/bar/quux.gno diff --git a/tests/files2/extern/baz-bat/baz-bat.go b/tests/files2/extern/baz-bat/baz-bat.gno similarity index 100% rename from tests/files2/extern/baz-bat/baz-bat.go rename to tests/files2/extern/baz-bat/baz-bat.gno diff --git a/tests/files2/extern/baz/quux.go b/tests/files2/extern/baz/quux.gno similarity index 100% rename from tests/files2/extern/baz/quux.go rename to tests/files2/extern/baz/quux.gno diff --git a/tests/files2/extern/c1/c1.go b/tests/files2/extern/c1/c1.gno similarity index 100% rename from tests/files2/extern/c1/c1.go rename to tests/files2/extern/c1/c1.gno diff --git a/tests/files2/extern/c2/c2.go b/tests/files2/extern/c2/c2.gno similarity index 100% rename from tests/files2/extern/c2/c2.go rename to tests/files2/extern/c2/c2.gno diff --git a/tests/files2/extern/context/context.go b/tests/files2/extern/context/context.gno similarity index 100% rename from tests/files2/extern/context/context.go rename to tests/files2/extern/context/context.gno diff --git a/tests/files2/extern/ct/ct1.go b/tests/files2/extern/ct/ct1.gno similarity index 100% rename from tests/files2/extern/ct/ct1.go rename to tests/files2/extern/ct/ct1.gno diff --git a/tests/files2/extern/ct/ct2.go b/tests/files2/extern/ct/ct2.gno similarity index 80% rename from tests/files2/extern/ct/ct2.go rename to tests/files2/extern/ct/ct2.gno index c290630f6f4..19c1dd7434b 100644 --- a/tests/files2/extern/ct/ct2.go +++ b/tests/files2/extern/ct/ct2.gno @@ -1,3 +1,4 @@ +//go:build !dummy // +build !dummy package ct diff --git a/tests/files2/extern/ct/ct3.go b/tests/files2/extern/ct/ct3.gno similarity index 80% rename from tests/files2/extern/ct/ct3.go rename to tests/files2/extern/ct/ct3.gno index 25584223cf0..a65632e9c94 100644 --- a/tests/files2/extern/ct/ct3.go +++ b/tests/files2/extern/ct/ct3.gno @@ -1,3 +1,4 @@ +//go:build dummy // +build dummy package ct diff --git a/tests/files2/extern/ct1/ct1.go b/tests/files2/extern/ct1/ct1.gno similarity index 100% rename from tests/files2/extern/ct1/ct1.go rename to tests/files2/extern/ct1/ct1.gno diff --git a/tests/files2/extern/foo-bar/foo-bar.go b/tests/files2/extern/foo-bar/foo-bar.gno similarity index 100% rename from tests/files2/extern/foo-bar/foo-bar.go rename to tests/files2/extern/foo-bar/foo-bar.gno diff --git a/tests/files2/extern/foo/bar.go b/tests/files2/extern/foo/bar.gno similarity index 100% rename from tests/files2/extern/foo/bar.go rename to tests/files2/extern/foo/bar.gno diff --git a/tests/files2/extern/foo/bir.go b/tests/files2/extern/foo/bir.gno similarity index 100% rename from tests/files2/extern/foo/bir.go rename to tests/files2/extern/foo/bir.gno diff --git a/tests/files2/extern/foo/boo/boo.go b/tests/files2/extern/foo/boo/boo.gno similarity index 100% rename from tests/files2/extern/foo/boo/boo.go rename to tests/files2/extern/foo/boo/boo.gno diff --git a/tests/files2/extern/m1/main.go b/tests/files2/extern/m1/main.gno similarity index 100% rename from tests/files2/extern/m1/main.go rename to tests/files2/extern/m1/main.gno diff --git a/tests/files2/extern/m1/main_test.go b/tests/files2/extern/m1/main_test.gno similarity index 100% rename from tests/files2/extern/m1/main_test.go rename to tests/files2/extern/m1/main_test.gno diff --git a/tests/files2/extern/m2/m2_test.go b/tests/files2/extern/m2/m2_test.gno similarity index 100% rename from tests/files2/extern/m2/m2_test.go rename to tests/files2/extern/m2/m2_test.gno diff --git a/tests/files2/extern/net/http/http.go b/tests/files2/extern/net/http/http.gno similarity index 100% rename from tests/files2/extern/net/http/http.go rename to tests/files2/extern/net/http/http.gno diff --git a/tests/files2/extern/net/http/httptest/httptest.go b/tests/files2/extern/net/http/httptest/httptest.gno similarity index 100% rename from tests/files2/extern/net/http/httptest/httptest.go rename to tests/files2/extern/net/http/httptest/httptest.gno diff --git a/tests/files2/extern/net/net.go b/tests/files2/extern/net/net.gno similarity index 100% rename from tests/files2/extern/net/net.go rename to tests/files2/extern/net/net.gno diff --git a/tests/files2/extern/net/url/url.go b/tests/files2/extern/net/url/url.gno similarity index 100% rename from tests/files2/extern/net/url/url.go rename to tests/files2/extern/net/url/url.gno diff --git a/tests/files2/extern/p1/s1.go b/tests/files2/extern/p1/s1.gno similarity index 100% rename from tests/files2/extern/p1/s1.go rename to tests/files2/extern/p1/s1.gno diff --git a/tests/files2/extern/p1/s2.go b/tests/files2/extern/p1/s2.gno similarity index 100% rename from tests/files2/extern/p1/s2.go rename to tests/files2/extern/p1/s2.gno diff --git a/tests/files2/extern/tata/tutu.go b/tests/files2/extern/tata/tutu.gno similarity index 100% rename from tests/files2/extern/tata/tutu.go rename to tests/files2/extern/tata/tutu.gno diff --git a/tests/files2/extern/time/time.go b/tests/files2/extern/time/time.gno similarity index 100% rename from tests/files2/extern/time/time.go rename to tests/files2/extern/time/time.gno diff --git a/tests/files2/extern/timtadh/data-structures/tree/avl/avltree.go b/tests/files2/extern/timtadh/data-structures/tree/avl/avltree.gno similarity index 100% rename from tests/files2/extern/timtadh/data-structures/tree/avl/avltree.go rename to tests/files2/extern/timtadh/data-structures/tree/avl/avltree.gno diff --git a/tests/files2/extern/timtadh/data-structures/tree/utils.go b/tests/files2/extern/timtadh/data-structures/tree/utils.gno similarity index 99% rename from tests/files2/extern/timtadh/data-structures/tree/utils.go rename to tests/files2/extern/timtadh/data-structures/tree/utils.gno index d28caefec8d..1cba11f6753 100644 --- a/tests/files2/extern/timtadh/data-structures/tree/utils.go +++ b/tests/files2/extern/timtadh/data-structures/tree/utils.gno @@ -1,4 +1,4 @@ -// from https://raw.githubusercontent.com/timtadh/data-structures/master/tree/util.go +// from https://raw.githubusercontent.com/timtadh/data-structures/master/tree/util.gno package tree diff --git a/tests/files2/extern/timtadh/data-structures/types/map_entry.go b/tests/files2/extern/timtadh/data-structures/types/map_entry.gno similarity index 100% rename from tests/files2/extern/timtadh/data-structures/types/map_entry.go rename to tests/files2/extern/timtadh/data-structures/types/map_entry.gno diff --git a/tests/files2/extern/timtadh/data-structures/types/string.go b/tests/files2/extern/timtadh/data-structures/types/string.gno similarity index 100% rename from tests/files2/extern/timtadh/data-structures/types/string.go rename to tests/files2/extern/timtadh/data-structures/types/string.gno diff --git a/tests/files/extern/timtadh/data-structures/types/types.go b/tests/files2/extern/timtadh/data-structures/types/types.gno similarity index 99% rename from tests/files/extern/timtadh/data-structures/types/types.go rename to tests/files2/extern/timtadh/data-structures/types/types.gno index bb88e8d0add..90a69e969ac 100644 --- a/tests/files/extern/timtadh/data-structures/types/types.go +++ b/tests/files2/extern/timtadh/data-structures/types/types.gno @@ -1,4 +1,4 @@ -// from https://raw.githubusercontent.com/timtadh/data-structures/master/types/types.go +// from https://raw.githubusercontent.com/timtadh/data-structures/master/types/types.gno package types diff --git a/tests/files2/extern/timtadh/data-structures/types/util.go b/tests/files2/extern/timtadh/data-structures/types/util.gno similarity index 100% rename from tests/files2/extern/timtadh/data-structures/types/util.go rename to tests/files2/extern/timtadh/data-structures/types/util.gno diff --git a/tests/files2/extern/toto/titi.go b/tests/files2/extern/toto/titi.gno similarity index 100% rename from tests/files2/extern/toto/titi.go rename to tests/files2/extern/toto/titi.gno diff --git a/tests/files2/extern/vars/first.go b/tests/files2/extern/vars/first.gno similarity index 100% rename from tests/files2/extern/vars/first.go rename to tests/files2/extern/vars/first.gno diff --git a/tests/files2/extern/vars/second.go b/tests/files2/extern/vars/second.gno similarity index 100% rename from tests/files2/extern/vars/second.go rename to tests/files2/extern/vars/second.gno diff --git a/tests/files2/fib0.go b/tests/files2/fib0.gno similarity index 100% rename from tests/files2/fib0.go rename to tests/files2/fib0.gno diff --git a/tests/files2/for0.go b/tests/files2/for0.gno similarity index 100% rename from tests/files2/for0.go rename to tests/files2/for0.gno diff --git a/tests/files2/for1.go b/tests/files2/for1.gno similarity index 100% rename from tests/files2/for1.go rename to tests/files2/for1.gno diff --git a/tests/files2/for10.go b/tests/files2/for10.gno similarity index 100% rename from tests/files2/for10.go rename to tests/files2/for10.gno diff --git a/tests/files2/for11.go b/tests/files2/for11.gno similarity index 100% rename from tests/files2/for11.go rename to tests/files2/for11.gno diff --git a/tests/files2/for12.go b/tests/files2/for12.gno similarity index 100% rename from tests/files2/for12.go rename to tests/files2/for12.gno diff --git a/tests/files2/for13.go b/tests/files2/for13.gno similarity index 100% rename from tests/files2/for13.go rename to tests/files2/for13.gno diff --git a/tests/files2/for14.go b/tests/files2/for14.gno similarity index 100% rename from tests/files2/for14.go rename to tests/files2/for14.gno diff --git a/tests/files2/for15.go b/tests/files2/for15.gno similarity index 100% rename from tests/files2/for15.go rename to tests/files2/for15.gno diff --git a/tests/files2/for16.go b/tests/files2/for16.gno similarity index 100% rename from tests/files2/for16.go rename to tests/files2/for16.gno diff --git a/tests/files2/for17.go b/tests/files2/for17.gno similarity index 100% rename from tests/files2/for17.go rename to tests/files2/for17.gno diff --git a/tests/files2/for18.go b/tests/files2/for18.gno similarity index 100% rename from tests/files2/for18.go rename to tests/files2/for18.gno diff --git a/tests/files2/for2.go b/tests/files2/for2.gno similarity index 100% rename from tests/files2/for2.go rename to tests/files2/for2.gno diff --git a/tests/files2/for3.go b/tests/files2/for3.gno similarity index 100% rename from tests/files2/for3.go rename to tests/files2/for3.gno diff --git a/tests/files2/for4.go b/tests/files2/for4.gno similarity index 100% rename from tests/files2/for4.go rename to tests/files2/for4.gno diff --git a/tests/files2/for5.go b/tests/files2/for5.gno similarity index 100% rename from tests/files2/for5.go rename to tests/files2/for5.gno diff --git a/tests/files2/for6.go b/tests/files2/for6.gno similarity index 100% rename from tests/files2/for6.go rename to tests/files2/for6.gno diff --git a/tests/files2/for7.go b/tests/files2/for7.gno similarity index 100% rename from tests/files2/for7.go rename to tests/files2/for7.gno diff --git a/tests/files2/for8.go b/tests/files2/for8.gno similarity index 100% rename from tests/files2/for8.go rename to tests/files2/for8.gno diff --git a/tests/files2/for9.go b/tests/files2/for9.gno similarity index 100% rename from tests/files2/for9.go rename to tests/files2/for9.gno diff --git a/tests/files2/fun.go b/tests/files2/fun.gno similarity index 100% rename from tests/files2/fun.go rename to tests/files2/fun.gno diff --git a/tests/files2/fun10.go b/tests/files2/fun10.gno similarity index 100% rename from tests/files2/fun10.go rename to tests/files2/fun10.gno diff --git a/tests/files2/fun11.go b/tests/files2/fun11.gno similarity index 100% rename from tests/files2/fun11.go rename to tests/files2/fun11.gno diff --git a/tests/files2/fun12.go b/tests/files2/fun12.gno similarity index 100% rename from tests/files2/fun12.go rename to tests/files2/fun12.gno diff --git a/tests/files2/fun13.go b/tests/files2/fun13.gno similarity index 100% rename from tests/files2/fun13.go rename to tests/files2/fun13.gno diff --git a/tests/files2/fun14.go b/tests/files2/fun14.gno similarity index 100% rename from tests/files2/fun14.go rename to tests/files2/fun14.gno diff --git a/tests/files2/fun15.go b/tests/files2/fun15.gno similarity index 100% rename from tests/files2/fun15.go rename to tests/files2/fun15.gno diff --git a/tests/files2/fun16.go b/tests/files2/fun16.gno similarity index 100% rename from tests/files2/fun16.go rename to tests/files2/fun16.gno diff --git a/tests/files2/fun17.go b/tests/files2/fun17.gno similarity index 100% rename from tests/files2/fun17.go rename to tests/files2/fun17.gno diff --git a/tests/files2/fun18.go b/tests/files2/fun18.gno similarity index 100% rename from tests/files2/fun18.go rename to tests/files2/fun18.gno diff --git a/tests/files2/fun19b.go b/tests/files2/fun19b.gno similarity index 100% rename from tests/files2/fun19b.go rename to tests/files2/fun19b.gno diff --git a/tests/files2/fun2.go b/tests/files2/fun2.gno similarity index 100% rename from tests/files2/fun2.go rename to tests/files2/fun2.gno diff --git a/tests/files2/fun20b.go b/tests/files2/fun20b.gno similarity index 100% rename from tests/files2/fun20b.go rename to tests/files2/fun20b.gno diff --git a/tests/files2/fun21.go b/tests/files2/fun21.gno similarity index 100% rename from tests/files2/fun21.go rename to tests/files2/fun21.gno diff --git a/tests/files2/fun22.go b/tests/files2/fun22.gno similarity index 100% rename from tests/files2/fun22.go rename to tests/files2/fun22.gno diff --git a/tests/files2/fun23.go b/tests/files2/fun23.gno similarity index 100% rename from tests/files2/fun23.go rename to tests/files2/fun23.gno diff --git a/tests/files2/fun24.go b/tests/files2/fun24.gno similarity index 100% rename from tests/files2/fun24.go rename to tests/files2/fun24.gno diff --git a/tests/files2/fun25.go b/tests/files2/fun25.gno similarity index 100% rename from tests/files2/fun25.go rename to tests/files2/fun25.gno diff --git a/tests/files2/fun26.go b/tests/files2/fun26.gno similarity index 100% rename from tests/files2/fun26.go rename to tests/files2/fun26.gno diff --git a/tests/files2/fun3.go b/tests/files2/fun3.gno similarity index 100% rename from tests/files2/fun3.go rename to tests/files2/fun3.gno diff --git a/tests/files2/fun4.go b/tests/files2/fun4.gno similarity index 100% rename from tests/files2/fun4.go rename to tests/files2/fun4.gno diff --git a/tests/files2/fun5.go b/tests/files2/fun5.gno similarity index 100% rename from tests/files2/fun5.go rename to tests/files2/fun5.gno diff --git a/tests/files2/fun6.go b/tests/files2/fun6.gno similarity index 100% rename from tests/files2/fun6.go rename to tests/files2/fun6.gno diff --git a/tests/files2/fun6b.go b/tests/files2/fun6b.gno similarity index 100% rename from tests/files2/fun6b.go rename to tests/files2/fun6b.gno diff --git a/tests/files2/fun7.go b/tests/files2/fun7.gno similarity index 100% rename from tests/files2/fun7.go rename to tests/files2/fun7.gno diff --git a/tests/files2/fun8.go b/tests/files2/fun8.gno similarity index 100% rename from tests/files2/fun8.go rename to tests/files2/fun8.gno diff --git a/tests/files2/fun9.go b/tests/files2/fun9.gno similarity index 100% rename from tests/files2/fun9.go rename to tests/files2/fun9.gno diff --git a/tests/files2/goto0.go b/tests/files2/goto0.gno similarity index 100% rename from tests/files2/goto0.go rename to tests/files2/goto0.gno diff --git a/tests/files2/goto1.go b/tests/files2/goto1.gno similarity index 100% rename from tests/files2/goto1.go rename to tests/files2/goto1.gno diff --git a/tests/files2/goto2.go b/tests/files2/goto2.gno similarity index 100% rename from tests/files2/goto2.go rename to tests/files2/goto2.gno diff --git a/tests/files2/goto3.go b/tests/files2/goto3.gno similarity index 100% rename from tests/files2/goto3.go rename to tests/files2/goto3.gno diff --git a/tests/files2/goto3a.go b/tests/files2/goto3a.gno similarity index 100% rename from tests/files2/goto3a.go rename to tests/files2/goto3a.gno diff --git a/tests/files2/goto4.go b/tests/files2/goto4.gno similarity index 100% rename from tests/files2/goto4.go rename to tests/files2/goto4.gno diff --git a/tests/files2/goto5.go b/tests/files2/goto5.gno similarity index 100% rename from tests/files2/goto5.go rename to tests/files2/goto5.gno diff --git a/tests/files2/goto6.go b/tests/files2/goto6.gno similarity index 100% rename from tests/files2/goto6.go rename to tests/files2/goto6.gno diff --git a/tests/files2/if.go b/tests/files2/if.gno similarity index 100% rename from tests/files2/if.go rename to tests/files2/if.gno diff --git a/tests/files2/if0.go b/tests/files2/if0.gno similarity index 100% rename from tests/files2/if0.go rename to tests/files2/if0.gno diff --git a/tests/files2/if1.go b/tests/files2/if1.gno similarity index 100% rename from tests/files2/if1.go rename to tests/files2/if1.gno diff --git a/tests/files2/if2.go b/tests/files2/if2.gno similarity index 100% rename from tests/files2/if2.go rename to tests/files2/if2.gno diff --git a/tests/files2/if3.go b/tests/files2/if3.gno similarity index 100% rename from tests/files2/if3.go rename to tests/files2/if3.gno diff --git a/tests/files2/if4.go b/tests/files2/if4.gno similarity index 100% rename from tests/files2/if4.go rename to tests/files2/if4.gno diff --git a/tests/files2/if5.go b/tests/files2/if5.gno similarity index 100% rename from tests/files2/if5.go rename to tests/files2/if5.gno diff --git a/tests/files2/if6.go b/tests/files2/if6.gno similarity index 100% rename from tests/files2/if6.go rename to tests/files2/if6.gno diff --git a/tests/files2/if7.go b/tests/files2/if7.gno similarity index 91% rename from tests/files2/if7.go rename to tests/files2/if7.gno index b5d14495b63..b3e4fb31d88 100644 --- a/tests/files2/if7.go +++ b/tests/files2/if7.gno @@ -3,7 +3,7 @@ package main func main() { a := 0 b := false - if (b) { + if b { a = 1 } else { a = -1 diff --git a/tests/files2/import0.go b/tests/files2/import0.gno similarity index 100% rename from tests/files2/import0.go rename to tests/files2/import0.gno diff --git a/tests/files2/import1.go b/tests/files2/import1.gno similarity index 100% rename from tests/files2/import1.go rename to tests/files2/import1.gno diff --git a/tests/files2/import10.go b/tests/files2/import10.gno similarity index 100% rename from tests/files2/import10.go rename to tests/files2/import10.gno diff --git a/tests/files2/import3.go b/tests/files2/import3.gno similarity index 100% rename from tests/files2/import3.go rename to tests/files2/import3.gno diff --git a/tests/files2/import4.go b/tests/files2/import4.gno similarity index 100% rename from tests/files2/import4.go rename to tests/files2/import4.gno diff --git a/tests/files2/import5.go b/tests/files2/import5.gno similarity index 100% rename from tests/files2/import5.go rename to tests/files2/import5.gno diff --git a/tests/files2/import6.go b/tests/files2/import6.gno similarity index 100% rename from tests/files2/import6.go rename to tests/files2/import6.gno diff --git a/tests/files2/import7.go b/tests/files2/import7.gno similarity index 100% rename from tests/files2/import7.go rename to tests/files2/import7.gno diff --git a/tests/files2/import8.go b/tests/files2/import8.gno similarity index 100% rename from tests/files2/import8.go rename to tests/files2/import8.gno diff --git a/tests/files2/import9.go b/tests/files2/import9.gno similarity index 100% rename from tests/files2/import9.go rename to tests/files2/import9.gno diff --git a/tests/files2/inc.go b/tests/files2/inc.gno similarity index 100% rename from tests/files2/inc.go rename to tests/files2/inc.gno diff --git a/tests/files2/index0.go b/tests/files2/index0.gno similarity index 100% rename from tests/files2/index0.go rename to tests/files2/index0.gno diff --git a/tests/files2/init0.go b/tests/files2/init0.gno similarity index 100% rename from tests/files2/init0.go rename to tests/files2/init0.gno diff --git a/tests/files2/init1.go b/tests/files2/init1.gno similarity index 100% rename from tests/files2/init1.go rename to tests/files2/init1.gno diff --git a/tests/files2/interface0.go b/tests/files2/interface0.gno similarity index 100% rename from tests/files2/interface0.go rename to tests/files2/interface0.gno diff --git a/tests/files2/interface1.go b/tests/files2/interface1.gno similarity index 100% rename from tests/files2/interface1.go rename to tests/files2/interface1.gno diff --git a/tests/files2/interface10.go b/tests/files2/interface10.gno similarity index 100% rename from tests/files2/interface10.go rename to tests/files2/interface10.gno diff --git a/tests/files2/interface11.go b/tests/files2/interface11.gno similarity index 100% rename from tests/files2/interface11.go rename to tests/files2/interface11.gno diff --git a/tests/files2/interface12.go b/tests/files2/interface12.gno similarity index 100% rename from tests/files2/interface12.go rename to tests/files2/interface12.gno diff --git a/tests/files2/interface13.go b/tests/files2/interface13.gno similarity index 100% rename from tests/files2/interface13.go rename to tests/files2/interface13.gno diff --git a/tests/files2/interface14.go b/tests/files2/interface14.gno similarity index 100% rename from tests/files2/interface14.go rename to tests/files2/interface14.gno diff --git a/tests/files2/interface15.go b/tests/files2/interface15.gno similarity index 100% rename from tests/files2/interface15.go rename to tests/files2/interface15.gno diff --git a/tests/files2/interface16.go b/tests/files2/interface16.gno similarity index 100% rename from tests/files2/interface16.go rename to tests/files2/interface16.gno diff --git a/tests/files2/interface17.go b/tests/files2/interface17.gno similarity index 100% rename from tests/files2/interface17.go rename to tests/files2/interface17.gno diff --git a/tests/files2/interface18.go b/tests/files2/interface18.gno similarity index 100% rename from tests/files2/interface18.go rename to tests/files2/interface18.gno diff --git a/tests/files2/interface19.go b/tests/files2/interface19.gno similarity index 100% rename from tests/files2/interface19.go rename to tests/files2/interface19.gno diff --git a/tests/files2/interface2.go b/tests/files2/interface2.gno similarity index 100% rename from tests/files2/interface2.go rename to tests/files2/interface2.gno diff --git a/tests/files2/interface20.go b/tests/files2/interface20.gno similarity index 100% rename from tests/files2/interface20.go rename to tests/files2/interface20.gno diff --git a/tests/files2/interface21.go b/tests/files2/interface21.gno similarity index 100% rename from tests/files2/interface21.go rename to tests/files2/interface21.gno diff --git a/tests/files2/interface22.go b/tests/files2/interface22.gno similarity index 100% rename from tests/files2/interface22.go rename to tests/files2/interface22.gno diff --git a/tests/files2/interface23.go b/tests/files2/interface23.gno similarity index 100% rename from tests/files2/interface23.go rename to tests/files2/interface23.gno diff --git a/tests/files2/interface24.go b/tests/files2/interface24.gno similarity index 100% rename from tests/files2/interface24.go rename to tests/files2/interface24.gno diff --git a/tests/files2/interface25.go b/tests/files2/interface25.gno similarity index 100% rename from tests/files2/interface25.go rename to tests/files2/interface25.gno diff --git a/tests/files2/interface26.go b/tests/files2/interface26.gno similarity index 100% rename from tests/files2/interface26.go rename to tests/files2/interface26.gno diff --git a/tests/files2/interface27b.go b/tests/files2/interface27b.gno similarity index 100% rename from tests/files2/interface27b.go rename to tests/files2/interface27b.gno diff --git a/tests/files2/interface28b.go b/tests/files2/interface28b.gno similarity index 100% rename from tests/files2/interface28b.go rename to tests/files2/interface28b.gno diff --git a/tests/files2/interface29.go b/tests/files2/interface29.gno similarity index 100% rename from tests/files2/interface29.go rename to tests/files2/interface29.gno diff --git a/tests/files2/interface3.go b/tests/files2/interface3.gno similarity index 100% rename from tests/files2/interface3.go rename to tests/files2/interface3.gno diff --git a/tests/files2/interface30.go b/tests/files2/interface30.gno similarity index 100% rename from tests/files2/interface30.go rename to tests/files2/interface30.gno diff --git a/tests/files2/interface31.go b/tests/files2/interface31.gno similarity index 100% rename from tests/files2/interface31.go rename to tests/files2/interface31.gno diff --git a/tests/files2/interface32.go b/tests/files2/interface32.gno similarity index 100% rename from tests/files2/interface32.go rename to tests/files2/interface32.gno diff --git a/tests/files2/interface33.go b/tests/files2/interface33.gno similarity index 100% rename from tests/files2/interface33.go rename to tests/files2/interface33.gno diff --git a/tests/files2/interface34.go b/tests/files2/interface34.gno similarity index 100% rename from tests/files2/interface34.go rename to tests/files2/interface34.gno diff --git a/tests/files2/interface35.go b/tests/files2/interface35.gno similarity index 100% rename from tests/files2/interface35.go rename to tests/files2/interface35.gno diff --git a/tests/files2/interface36.go b/tests/files2/interface36.gno similarity index 100% rename from tests/files2/interface36.go rename to tests/files2/interface36.gno diff --git a/tests/files2/interface37.go b/tests/files2/interface37.gno similarity index 100% rename from tests/files2/interface37.go rename to tests/files2/interface37.gno diff --git a/tests/files2/interface38b.go b/tests/files2/interface38b.gno similarity index 100% rename from tests/files2/interface38b.go rename to tests/files2/interface38b.gno diff --git a/tests/files2/interface39b.go b/tests/files2/interface39b.gno similarity index 100% rename from tests/files2/interface39b.go rename to tests/files2/interface39b.gno diff --git a/tests/files2/interface4.go b/tests/files2/interface4.gno similarity index 100% rename from tests/files2/interface4.go rename to tests/files2/interface4.gno diff --git a/tests/files2/interface40b.go b/tests/files2/interface40b.gno similarity index 100% rename from tests/files2/interface40b.go rename to tests/files2/interface40b.gno diff --git a/tests/files2/interface41b.go b/tests/files2/interface41b.gno similarity index 100% rename from tests/files2/interface41b.go rename to tests/files2/interface41b.gno diff --git a/tests/files2/interface42.go b/tests/files2/interface42.gno similarity index 100% rename from tests/files2/interface42.go rename to tests/files2/interface42.gno diff --git a/tests/files2/interface43.go b/tests/files2/interface43.gno similarity index 100% rename from tests/files2/interface43.go rename to tests/files2/interface43.gno diff --git a/tests/files2/interface44.go b/tests/files2/interface44.gno similarity index 100% rename from tests/files2/interface44.go rename to tests/files2/interface44.gno diff --git a/tests/files2/interface45.go b/tests/files2/interface45.gno similarity index 100% rename from tests/files2/interface45.go rename to tests/files2/interface45.gno diff --git a/tests/files2/interface46.go b/tests/files2/interface46.gno similarity index 100% rename from tests/files2/interface46.go rename to tests/files2/interface46.gno diff --git a/tests/files2/interface5.go b/tests/files2/interface5.gno similarity index 100% rename from tests/files2/interface5.go rename to tests/files2/interface5.gno diff --git a/tests/files2/interface6.go b/tests/files2/interface6.gno similarity index 100% rename from tests/files2/interface6.go rename to tests/files2/interface6.gno diff --git a/tests/files2/interface7b.go b/tests/files2/interface7b.gno similarity index 100% rename from tests/files2/interface7b.go rename to tests/files2/interface7b.gno diff --git a/tests/files2/interface8.go b/tests/files2/interface8.gno similarity index 100% rename from tests/files2/interface8.go rename to tests/files2/interface8.gno diff --git a/tests/files2/interface9b.go b/tests/files2/interface9b.gno similarity index 100% rename from tests/files2/interface9b.go rename to tests/files2/interface9b.gno diff --git a/tests/files2/io0.go b/tests/files2/io0.gno similarity index 100% rename from tests/files2/io0.go rename to tests/files2/io0.gno diff --git a/tests/files2/io1.go b/tests/files2/io1.gno similarity index 100% rename from tests/files2/io1.go rename to tests/files2/io1.gno diff --git a/tests/files2/iota.go b/tests/files2/iota.gno similarity index 100% rename from tests/files2/iota.go rename to tests/files2/iota.gno diff --git a/tests/files2/iota0.go b/tests/files2/iota0.gno similarity index 100% rename from tests/files2/iota0.go rename to tests/files2/iota0.gno diff --git a/tests/files2/ioutil0.go b/tests/files2/ioutil0.gno similarity index 100% rename from tests/files2/ioutil0.go rename to tests/files2/ioutil0.gno diff --git a/tests/files2/ipp_as_key.go b/tests/files2/ipp_as_key.gno similarity index 100% rename from tests/files2/ipp_as_key.go rename to tests/files2/ipp_as_key.gno diff --git a/tests/files2/issue-558b.go b/tests/files2/issue-558b.gno similarity index 100% rename from tests/files2/issue-558b.go rename to tests/files2/issue-558b.gno diff --git a/tests/files2/issue-735.go b/tests/files2/issue-735.gno similarity index 100% rename from tests/files2/issue-735.go rename to tests/files2/issue-735.gno diff --git a/tests/files2/issue-776.go b/tests/files2/issue-776.gno similarity index 100% rename from tests/files2/issue-776.go rename to tests/files2/issue-776.gno diff --git a/tests/files2/issue-782.go b/tests/files2/issue-782.gno similarity index 100% rename from tests/files2/issue-782.go rename to tests/files2/issue-782.gno diff --git a/tests/files2/issue-784.go b/tests/files2/issue-784.gno similarity index 100% rename from tests/files2/issue-784.go rename to tests/files2/issue-784.gno diff --git a/tests/files2/issue-880.go b/tests/files2/issue-880.gno similarity index 100% rename from tests/files2/issue-880.go rename to tests/files2/issue-880.gno diff --git a/tests/files2/l2_long.go b/tests/files2/l2_long.gno similarity index 100% rename from tests/files2/l2_long.go rename to tests/files2/l2_long.gno diff --git a/tests/files2/l3_long.go b/tests/files2/l3_long.gno similarity index 100% rename from tests/files2/l3_long.go rename to tests/files2/l3_long.gno diff --git a/tests/files2/l4_long.go b/tests/files2/l4_long.gno similarity index 100% rename from tests/files2/l4_long.go rename to tests/files2/l4_long.gno diff --git a/tests/files2/l5_long.go b/tests/files2/l5_long.gno similarity index 100% rename from tests/files2/l5_long.go rename to tests/files2/l5_long.gno diff --git a/tests/files2/len0.go b/tests/files2/len0.gno similarity index 100% rename from tests/files2/len0.go rename to tests/files2/len0.gno diff --git a/tests/files2/make0.go b/tests/files2/make0.gno similarity index 100% rename from tests/files2/make0.go rename to tests/files2/make0.gno diff --git a/tests/files2/make1.go b/tests/files2/make1.gno similarity index 100% rename from tests/files2/make1.go rename to tests/files2/make1.gno diff --git a/tests/files2/make2.go b/tests/files2/make2.gno similarity index 100% rename from tests/files2/make2.go rename to tests/files2/make2.gno diff --git a/tests/files2/map.go b/tests/files2/map.gno similarity index 100% rename from tests/files2/map.go rename to tests/files2/map.gno diff --git a/tests/files2/map10.go b/tests/files2/map10.gno similarity index 100% rename from tests/files2/map10.go rename to tests/files2/map10.gno diff --git a/tests/files2/map11.go b/tests/files2/map11.gno similarity index 100% rename from tests/files2/map11.go rename to tests/files2/map11.gno diff --git a/tests/files2/map12.go b/tests/files2/map12.gno similarity index 100% rename from tests/files2/map12.go rename to tests/files2/map12.gno diff --git a/tests/files2/map13.go b/tests/files2/map13.gno similarity index 100% rename from tests/files2/map13.go rename to tests/files2/map13.gno diff --git a/tests/files2/map14b.go b/tests/files2/map14b.gno similarity index 100% rename from tests/files2/map14b.go rename to tests/files2/map14b.gno diff --git a/tests/files2/map15.go b/tests/files2/map15.gno similarity index 100% rename from tests/files2/map15.go rename to tests/files2/map15.gno diff --git a/tests/files2/map16.go b/tests/files2/map16.gno similarity index 100% rename from tests/files2/map16.go rename to tests/files2/map16.gno diff --git a/tests/files2/map17.go b/tests/files2/map17.gno similarity index 100% rename from tests/files2/map17.go rename to tests/files2/map17.gno diff --git a/tests/files2/map18.go b/tests/files2/map18.gno similarity index 100% rename from tests/files2/map18.go rename to tests/files2/map18.gno diff --git a/tests/files2/map19b.go b/tests/files2/map19b.gno similarity index 100% rename from tests/files2/map19b.go rename to tests/files2/map19b.gno diff --git a/tests/files2/map2.go b/tests/files2/map2.gno similarity index 100% rename from tests/files2/map2.go rename to tests/files2/map2.gno diff --git a/tests/files2/map20.go b/tests/files2/map20.gno similarity index 100% rename from tests/files2/map20.go rename to tests/files2/map20.gno diff --git a/tests/files2/map21.go b/tests/files2/map21.gno similarity index 100% rename from tests/files2/map21.go rename to tests/files2/map21.gno diff --git a/tests/files2/map22.go b/tests/files2/map22.gno similarity index 100% rename from tests/files2/map22.go rename to tests/files2/map22.gno diff --git a/tests/files2/map23.go b/tests/files2/map23.gno similarity index 100% rename from tests/files2/map23.go rename to tests/files2/map23.gno diff --git a/tests/files2/map24.go b/tests/files2/map24.gno similarity index 100% rename from tests/files2/map24.go rename to tests/files2/map24.gno diff --git a/tests/files2/map25.go b/tests/files2/map25.gno similarity index 100% rename from tests/files2/map25.go rename to tests/files2/map25.gno diff --git a/tests/files2/map26.go b/tests/files2/map26.gno similarity index 100% rename from tests/files2/map26.go rename to tests/files2/map26.gno diff --git a/tests/files2/map27.go b/tests/files2/map27.gno similarity index 100% rename from tests/files2/map27.go rename to tests/files2/map27.gno diff --git a/tests/files2/map28b.go b/tests/files2/map28b.gno similarity index 100% rename from tests/files2/map28b.go rename to tests/files2/map28b.gno diff --git a/tests/files2/map29.go b/tests/files2/map29.gno similarity index 100% rename from tests/files2/map29.go rename to tests/files2/map29.gno diff --git a/tests/files2/map3.go b/tests/files2/map3.gno similarity index 100% rename from tests/files2/map3.go rename to tests/files2/map3.gno diff --git a/tests/files2/map4.go b/tests/files2/map4.gno similarity index 100% rename from tests/files2/map4.go rename to tests/files2/map4.gno diff --git a/tests/files2/map5.go b/tests/files2/map5.gno similarity index 100% rename from tests/files2/map5.go rename to tests/files2/map5.gno diff --git a/tests/files2/map6.go b/tests/files2/map6.gno similarity index 100% rename from tests/files2/map6.go rename to tests/files2/map6.gno diff --git a/tests/files2/map7.go b/tests/files2/map7.gno similarity index 100% rename from tests/files2/map7.go rename to tests/files2/map7.gno diff --git a/tests/files2/map8.go b/tests/files2/map8.gno similarity index 100% rename from tests/files2/map8.go rename to tests/files2/map8.gno diff --git a/tests/files2/map9.go b/tests/files2/map9.gno similarity index 100% rename from tests/files2/map9.go rename to tests/files2/map9.gno diff --git a/tests/files2/math0.go b/tests/files2/math0.gno similarity index 100% rename from tests/files2/math0.go rename to tests/files2/math0.gno diff --git a/tests/files2/math2.go b/tests/files2/math2.gno similarity index 100% rename from tests/files2/math2.go rename to tests/files2/math2.gno diff --git a/tests/files2/math3.go b/tests/files2/math3.gno similarity index 100% rename from tests/files2/math3.go rename to tests/files2/math3.gno diff --git a/tests/files2/maths_int16_long.go b/tests/files2/maths_int16_long.gno similarity index 100% rename from tests/files2/maths_int16_long.go rename to tests/files2/maths_int16_long.gno diff --git a/tests/files2/maths_int8.go b/tests/files2/maths_int8.gno similarity index 100% rename from tests/files2/maths_int8.go rename to tests/files2/maths_int8.gno diff --git a/tests/files2/method.go b/tests/files2/method.gno similarity index 100% rename from tests/files2/method.go rename to tests/files2/method.gno diff --git a/tests/files2/method0.go b/tests/files2/method0.gno similarity index 100% rename from tests/files2/method0.go rename to tests/files2/method0.gno diff --git a/tests/files2/method1.go b/tests/files2/method1.gno similarity index 100% rename from tests/files2/method1.go rename to tests/files2/method1.gno diff --git a/tests/files2/method10.go b/tests/files2/method10.gno similarity index 100% rename from tests/files2/method10.go rename to tests/files2/method10.gno diff --git a/tests/files2/method11.go b/tests/files2/method11.gno similarity index 100% rename from tests/files2/method11.go rename to tests/files2/method11.gno diff --git a/tests/files2/method12.go b/tests/files2/method12.gno similarity index 100% rename from tests/files2/method12.go rename to tests/files2/method12.gno diff --git a/tests/files2/method13.go b/tests/files2/method13.gno similarity index 100% rename from tests/files2/method13.go rename to tests/files2/method13.gno diff --git a/tests/files2/method14.go b/tests/files2/method14.gno similarity index 100% rename from tests/files2/method14.go rename to tests/files2/method14.gno diff --git a/tests/files2/method15.go b/tests/files2/method15.gno similarity index 100% rename from tests/files2/method15.go rename to tests/files2/method15.gno diff --git a/tests/files2/method16b.go b/tests/files2/method16b.gno similarity index 100% rename from tests/files2/method16b.go rename to tests/files2/method16b.gno diff --git a/tests/files2/method17b.go b/tests/files2/method17b.gno similarity index 100% rename from tests/files2/method17b.go rename to tests/files2/method17b.gno diff --git a/tests/files2/method18.go b/tests/files2/method18.gno similarity index 100% rename from tests/files2/method18.go rename to tests/files2/method18.gno diff --git a/tests/files2/method19.go b/tests/files2/method19.gno similarity index 100% rename from tests/files2/method19.go rename to tests/files2/method19.gno diff --git a/tests/files2/method2.go b/tests/files2/method2.gno similarity index 100% rename from tests/files2/method2.go rename to tests/files2/method2.gno diff --git a/tests/files2/method20.go b/tests/files2/method20.gno similarity index 100% rename from tests/files2/method20.go rename to tests/files2/method20.gno diff --git a/tests/files2/method21.go b/tests/files2/method21.gno similarity index 100% rename from tests/files2/method21.go rename to tests/files2/method21.gno diff --git a/tests/files2/method22.go b/tests/files2/method22.gno similarity index 100% rename from tests/files2/method22.go rename to tests/files2/method22.gno diff --git a/tests/files2/method23.go b/tests/files2/method23.gno similarity index 100% rename from tests/files2/method23.go rename to tests/files2/method23.gno diff --git a/tests/files2/method24.go b/tests/files2/method24.gno similarity index 100% rename from tests/files2/method24.go rename to tests/files2/method24.gno diff --git a/tests/files2/method25.go b/tests/files2/method25.gno similarity index 100% rename from tests/files2/method25.go rename to tests/files2/method25.gno diff --git a/tests/files2/method26.go b/tests/files2/method26.gno similarity index 100% rename from tests/files2/method26.go rename to tests/files2/method26.gno diff --git a/tests/files2/method27.go b/tests/files2/method27.gno similarity index 100% rename from tests/files2/method27.go rename to tests/files2/method27.gno diff --git a/tests/files2/method28.go b/tests/files2/method28.gno similarity index 100% rename from tests/files2/method28.go rename to tests/files2/method28.gno diff --git a/tests/files2/method29b.go b/tests/files2/method29b.gno similarity index 100% rename from tests/files2/method29b.go rename to tests/files2/method29b.gno diff --git a/tests/files2/method3.go b/tests/files2/method3.gno similarity index 100% rename from tests/files2/method3.go rename to tests/files2/method3.gno diff --git a/tests/files2/method30.go b/tests/files2/method30.gno similarity index 100% rename from tests/files2/method30.go rename to tests/files2/method30.gno diff --git a/tests/files2/method31b.go b/tests/files2/method31b.gno similarity index 100% rename from tests/files2/method31b.go rename to tests/files2/method31b.gno diff --git a/tests/files2/method32.go b/tests/files2/method32.gno similarity index 85% rename from tests/files2/method32.go rename to tests/files2/method32.gno index f690b7276e2..090e74b094b 100644 --- a/tests/files2/method32.go +++ b/tests/files2/method32.gno @@ -6,8 +6,8 @@ import ( func main() { var a = []func(string){bar} - b := a[0] - b("bar") + b := a[0] + b("bar") } func bar(a string) { diff --git a/tests/files2/method33.go b/tests/files2/method33.gno similarity index 100% rename from tests/files2/method33.go rename to tests/files2/method33.gno diff --git a/tests/files2/method34.go b/tests/files2/method34.gno similarity index 100% rename from tests/files2/method34.go rename to tests/files2/method34.gno diff --git a/tests/files2/method35.go b/tests/files2/method35.gno similarity index 100% rename from tests/files2/method35.go rename to tests/files2/method35.gno diff --git a/tests/files2/method36.go b/tests/files2/method36.gno similarity index 100% rename from tests/files2/method36.go rename to tests/files2/method36.gno diff --git a/tests/files2/method37.go b/tests/files2/method37.gno similarity index 100% rename from tests/files2/method37.go rename to tests/files2/method37.gno diff --git a/tests/files2/method4.go b/tests/files2/method4.gno similarity index 100% rename from tests/files2/method4.go rename to tests/files2/method4.gno diff --git a/tests/files2/method5.go b/tests/files2/method5.gno similarity index 100% rename from tests/files2/method5.go rename to tests/files2/method5.gno diff --git a/tests/files2/method6.go b/tests/files2/method6.gno similarity index 100% rename from tests/files2/method6.go rename to tests/files2/method6.gno diff --git a/tests/files2/method7.go b/tests/files2/method7.gno similarity index 100% rename from tests/files2/method7.go rename to tests/files2/method7.gno diff --git a/tests/files2/method8.go b/tests/files2/method8.gno similarity index 100% rename from tests/files2/method8.go rename to tests/files2/method8.gno diff --git a/tests/files2/method9.go b/tests/files2/method9.gno similarity index 100% rename from tests/files2/method9.go rename to tests/files2/method9.gno diff --git a/tests/files2/neg0.go b/tests/files2/neg0.gno similarity index 100% rename from tests/files2/neg0.go rename to tests/files2/neg0.gno diff --git a/tests/files2/new0.go b/tests/files2/new0.gno similarity index 100% rename from tests/files2/new0.go rename to tests/files2/new0.gno diff --git a/tests/files2/new1.go b/tests/files2/new1.gno similarity index 100% rename from tests/files2/new1.go rename to tests/files2/new1.gno diff --git a/tests/files2/new2.go b/tests/files2/new2.gno similarity index 100% rename from tests/files2/new2.go rename to tests/files2/new2.gno diff --git a/tests/files2/new3.go b/tests/files2/new3.gno similarity index 100% rename from tests/files2/new3.go rename to tests/files2/new3.gno diff --git a/tests/files2/nil0.go b/tests/files2/nil0.gno similarity index 100% rename from tests/files2/nil0.go rename to tests/files2/nil0.gno diff --git a/tests/files2/nil1.go b/tests/files2/nil1.gno similarity index 100% rename from tests/files2/nil1.go rename to tests/files2/nil1.gno diff --git a/tests/files2/nil2.go b/tests/files2/nil2.gno similarity index 100% rename from tests/files2/nil2.go rename to tests/files2/nil2.gno diff --git a/tests/files2/nil3.go b/tests/files2/nil3.gno similarity index 100% rename from tests/files2/nil3.go rename to tests/files2/nil3.gno diff --git a/tests/files2/not0.go b/tests/files2/not0.gno similarity index 100% rename from tests/files2/not0.go rename to tests/files2/not0.gno diff --git a/tests/files2/not1.gno b/tests/files2/not1.gno new file mode 100644 index 00000000000..16292fe75bb --- /dev/null +++ b/tests/files2/not1.gno @@ -0,0 +1,15 @@ +package main + +func main() { + a := 0 + b := true + if !b { + a = 1 + } else { + a = -1 + } + println(a) +} + +// Output: +// -1 diff --git a/tests/files2/not1.go b/tests/files2/not1.go deleted file mode 100644 index d2284fbf7a9..00000000000 --- a/tests/files2/not1.go +++ /dev/null @@ -1,15 +0,0 @@ -package main - -func main() { - a := 0 - b := true - if (!b) { - a = 1 - } else { - a = -1 - } - println(a) -} - -// Output: -// -1 diff --git a/tests/files2/not2.go b/tests/files2/not2.gno similarity index 100% rename from tests/files2/not2.go rename to tests/files2/not2.gno diff --git a/tests/files2/op0.go b/tests/files2/op0.gno similarity index 100% rename from tests/files2/op0.go rename to tests/files2/op0.gno diff --git a/tests/files2/op2.go b/tests/files2/op2.gno similarity index 100% rename from tests/files2/op2.go rename to tests/files2/op2.gno diff --git a/tests/files2/op6.go b/tests/files2/op6.gno similarity index 100% rename from tests/files2/op6.go rename to tests/files2/op6.gno diff --git a/tests/files2/op7.go b/tests/files2/op7.gno similarity index 100% rename from tests/files2/op7.go rename to tests/files2/op7.gno diff --git a/tests/files2/op8.go b/tests/files2/op8.gno similarity index 100% rename from tests/files2/op8.go rename to tests/files2/op8.gno diff --git a/tests/files2/opint16.go b/tests/files2/opint16.gno similarity index 100% rename from tests/files2/opint16.go rename to tests/files2/opint16.gno diff --git a/tests/files2/opint32.go b/tests/files2/opint32.gno similarity index 100% rename from tests/files2/opint32.go rename to tests/files2/opint32.gno diff --git a/tests/files2/opint64.go b/tests/files2/opint64.gno similarity index 100% rename from tests/files2/opint64.go rename to tests/files2/opint64.gno diff --git a/tests/files2/opint8.go b/tests/files2/opint8.gno similarity index 100% rename from tests/files2/opint8.go rename to tests/files2/opint8.gno diff --git a/tests/files2/opstring.go b/tests/files2/opstring.gno similarity index 100% rename from tests/files2/opstring.go rename to tests/files2/opstring.gno diff --git a/tests/files2/opuint16.go b/tests/files2/opuint16.gno similarity index 100% rename from tests/files2/opuint16.go rename to tests/files2/opuint16.gno diff --git a/tests/files2/opuint32.go b/tests/files2/opuint32.gno similarity index 100% rename from tests/files2/opuint32.go rename to tests/files2/opuint32.gno diff --git a/tests/files2/opuint64.go b/tests/files2/opuint64.gno similarity index 100% rename from tests/files2/opuint64.go rename to tests/files2/opuint64.gno diff --git a/tests/files2/opuint8.go b/tests/files2/opuint8.gno similarity index 100% rename from tests/files2/opuint8.go rename to tests/files2/opuint8.gno diff --git a/tests/files2/or0.go b/tests/files2/or0.gno similarity index 100% rename from tests/files2/or0.go rename to tests/files2/or0.gno diff --git a/tests/files2/or1.go b/tests/files2/or1.gno similarity index 100% rename from tests/files2/or1.go rename to tests/files2/or1.gno diff --git a/tests/files2/or2.go b/tests/files2/or2.gno similarity index 100% rename from tests/files2/or2.go rename to tests/files2/or2.gno diff --git a/tests/files2/or3.go b/tests/files2/or3.gno similarity index 100% rename from tests/files2/or3.go rename to tests/files2/or3.gno diff --git a/tests/files2/or4.go b/tests/files2/or4.gno similarity index 100% rename from tests/files2/or4.go rename to tests/files2/or4.gno diff --git a/tests/files2/panic0.go b/tests/files2/panic0.gno similarity index 100% rename from tests/files2/panic0.go rename to tests/files2/panic0.gno diff --git a/tests/files2/pkgname0.go b/tests/files2/pkgname0.gno similarity index 100% rename from tests/files2/pkgname0.go rename to tests/files2/pkgname0.gno diff --git a/tests/files2/pkgname1.go b/tests/files2/pkgname1.gno similarity index 100% rename from tests/files2/pkgname1.go rename to tests/files2/pkgname1.gno diff --git a/tests/files2/pkgname2.go b/tests/files2/pkgname2.gno similarity index 100% rename from tests/files2/pkgname2.go rename to tests/files2/pkgname2.gno diff --git a/tests/files2/primes.go b/tests/files2/primes.gno similarity index 100% rename from tests/files2/primes.go rename to tests/files2/primes.gno diff --git a/tests/files2/print0.go b/tests/files2/print0.gno similarity index 100% rename from tests/files2/print0.go rename to tests/files2/print0.gno diff --git a/tests/files2/ptr0.go b/tests/files2/ptr0.gno similarity index 100% rename from tests/files2/ptr0.go rename to tests/files2/ptr0.gno diff --git a/tests/files2/ptr1.go b/tests/files2/ptr1.gno similarity index 100% rename from tests/files2/ptr1.go rename to tests/files2/ptr1.gno diff --git a/tests/files2/ptr2.go b/tests/files2/ptr2.gno similarity index 100% rename from tests/files2/ptr2.go rename to tests/files2/ptr2.gno diff --git a/tests/files2/ptr3.go b/tests/files2/ptr3.gno similarity index 100% rename from tests/files2/ptr3.go rename to tests/files2/ptr3.gno diff --git a/tests/files2/ptr4.go b/tests/files2/ptr4.gno similarity index 100% rename from tests/files2/ptr4.go rename to tests/files2/ptr4.gno diff --git a/tests/files2/ptr5.go b/tests/files2/ptr5.gno similarity index 100% rename from tests/files2/ptr5.go rename to tests/files2/ptr5.gno diff --git a/tests/files2/ptr5a.go b/tests/files2/ptr5a.gno similarity index 100% rename from tests/files2/ptr5a.go rename to tests/files2/ptr5a.gno diff --git a/tests/files2/ptr6.go b/tests/files2/ptr6.gno similarity index 100% rename from tests/files2/ptr6.go rename to tests/files2/ptr6.gno diff --git a/tests/files2/ptr7.go b/tests/files2/ptr7.gno similarity index 100% rename from tests/files2/ptr7.go rename to tests/files2/ptr7.gno diff --git a/tests/files2/ptr8.go b/tests/files2/ptr8.gno similarity index 100% rename from tests/files2/ptr8.go rename to tests/files2/ptr8.gno diff --git a/tests/files2/ptr_array0.go b/tests/files2/ptr_array0.gno similarity index 100% rename from tests/files2/ptr_array0.go rename to tests/files2/ptr_array0.gno diff --git a/tests/files2/ptr_array1.go b/tests/files2/ptr_array1.gno similarity index 100% rename from tests/files2/ptr_array1.go rename to tests/files2/ptr_array1.gno diff --git a/tests/files2/ptr_array2.go b/tests/files2/ptr_array2.gno similarity index 100% rename from tests/files2/ptr_array2.go rename to tests/files2/ptr_array2.gno diff --git a/tests/files2/ptr_array3.go b/tests/files2/ptr_array3.gno similarity index 100% rename from tests/files2/ptr_array3.go rename to tests/files2/ptr_array3.gno diff --git a/tests/files2/range0.go b/tests/files2/range0.gno similarity index 100% rename from tests/files2/range0.go rename to tests/files2/range0.gno diff --git a/tests/files2/range1.go b/tests/files2/range1.gno similarity index 100% rename from tests/files2/range1.go rename to tests/files2/range1.gno diff --git a/tests/files2/range2.go b/tests/files2/range2.gno similarity index 100% rename from tests/files2/range2.go rename to tests/files2/range2.gno diff --git a/tests/files2/range3.go b/tests/files2/range3.gno similarity index 100% rename from tests/files2/range3.go rename to tests/files2/range3.gno diff --git a/tests/files2/range4.go b/tests/files2/range4.gno similarity index 100% rename from tests/files2/range4.go rename to tests/files2/range4.gno diff --git a/tests/files2/range5.go b/tests/files2/range5.gno similarity index 100% rename from tests/files2/range5.go rename to tests/files2/range5.gno diff --git a/tests/files2/range6.go b/tests/files2/range6.gno similarity index 100% rename from tests/files2/range6.go rename to tests/files2/range6.gno diff --git a/tests/files2/range7.go b/tests/files2/range7.gno similarity index 100% rename from tests/files2/range7.go rename to tests/files2/range7.gno diff --git a/tests/files2/recover0.go b/tests/files2/recover0.gno similarity index 100% rename from tests/files2/recover0.go rename to tests/files2/recover0.gno diff --git a/tests/files2/recover1.go b/tests/files2/recover1.gno similarity index 100% rename from tests/files2/recover1.go rename to tests/files2/recover1.gno diff --git a/tests/files2/recover2.go b/tests/files2/recover2.gno similarity index 100% rename from tests/files2/recover2.go rename to tests/files2/recover2.gno diff --git a/tests/files2/recover3.go b/tests/files2/recover3.gno similarity index 100% rename from tests/files2/recover3.go rename to tests/files2/recover3.gno diff --git a/tests/files2/recover4.go b/tests/files2/recover4.gno similarity index 100% rename from tests/files2/recover4.go rename to tests/files2/recover4.gno diff --git a/tests/files2/recurse0.go b/tests/files2/recurse0.gno similarity index 100% rename from tests/files2/recurse0.go rename to tests/files2/recurse0.gno diff --git a/tests/files2/redeclaration-global0.gno b/tests/files2/redeclaration-global0.gno new file mode 100644 index 00000000000..33caa5d1578 --- /dev/null +++ b/tests/files2/redeclaration-global0.gno @@ -0,0 +1,14 @@ +package main + +type time int + +var time string + +func main() { + time = "hello" + println(time) +} + +// Error: +// files2/redeclaration-global0.gno:5:5: time redeclared in this block +// previous declaration at files2/redeclaration-global0.gno:3:6 diff --git a/tests/files2/redeclaration-global0.go b/tests/files2/redeclaration-global0.go deleted file mode 100644 index d84c5e1f320..00000000000 --- a/tests/files2/redeclaration-global0.go +++ /dev/null @@ -1,14 +0,0 @@ -package main - -type time int - -var time string - -func main() { - time = "hello" - println(time) -} - -// Error: -// files2/redeclaration-global0.go:5:5: time redeclared in this block -// previous declaration at files2/redeclaration-global0.go:3:6 diff --git a/tests/files2/redeclaration-global1.gno b/tests/files2/redeclaration-global1.gno new file mode 100644 index 00000000000..ca5f3816de6 --- /dev/null +++ b/tests/files2/redeclaration-global1.gno @@ -0,0 +1,14 @@ +package main + +var time int + +type time string + +func main() { + var t time = "hello" + println(t) +} + +// Error: +// files2/redeclaration-global1.gno:5:6: time redeclared in this block +// previous declaration at files2/redeclaration-global1.gno:3:5 diff --git a/tests/files2/redeclaration-global1.go b/tests/files2/redeclaration-global1.go deleted file mode 100644 index 3aaaa766376..00000000000 --- a/tests/files2/redeclaration-global1.go +++ /dev/null @@ -1,14 +0,0 @@ -package main - -var time int - -type time string - -func main() { - var t time = "hello" - println(t) -} - -// Error: -// files2/redeclaration-global1.go:5:6: time redeclared in this block -// previous declaration at files2/redeclaration-global1.go:3:5 diff --git a/tests/files2/redeclaration-global5.gno b/tests/files2/redeclaration-global5.gno new file mode 100644 index 00000000000..97bf8dd551d --- /dev/null +++ b/tests/files2/redeclaration-global5.gno @@ -0,0 +1,16 @@ +package main + +var time int + +func time() string { + return "hello" +} + +func main() { + t := time() + println(t) +} + +// Error: +// files2/redeclaration-global5.gno:5:6: time redeclared in this block +// previous declaration at files2/redeclaration-global5.gno:3:5 diff --git a/tests/files2/redeclaration-global5.go b/tests/files2/redeclaration-global5.go deleted file mode 100644 index 34291221257..00000000000 --- a/tests/files2/redeclaration-global5.go +++ /dev/null @@ -1,16 +0,0 @@ -package main - -var time int - -func time() string { - return "hello" -} - -func main() { - t := time() - println(t) -} - -// Error: -// files2/redeclaration-global5.go:5:6: time redeclared in this block -// previous declaration at files2/redeclaration-global5.go:3:5 diff --git a/tests/files2/redeclaration0.gno b/tests/files2/redeclaration0.gno new file mode 100644 index 00000000000..053bfe8b96f --- /dev/null +++ b/tests/files2/redeclaration0.gno @@ -0,0 +1,15 @@ +package main + +func main() { + type foo struct { + yolo string + } + + var foo int + foo = 2 + println(foo) +} + +// Error: +// files2/redeclaration0.gno:8:6: foo redeclared in this block +// previous declaration at files2/redeclaration0.gno:4:7 diff --git a/tests/files2/redeclaration0.go b/tests/files2/redeclaration0.go deleted file mode 100644 index 0780beb513b..00000000000 --- a/tests/files2/redeclaration0.go +++ /dev/null @@ -1,15 +0,0 @@ -package main - -func main() { - type foo struct { - yolo string - } - - var foo int - foo = 2 - println(foo) -} - -// Error: -// files2/redeclaration0.go:8:6: foo redeclared in this block -// previous declaration at files2/redeclaration0.go:4:7 diff --git a/tests/files2/redeclaration1.go b/tests/files2/redeclaration1.gno similarity index 59% rename from tests/files2/redeclaration1.go rename to tests/files2/redeclaration1.gno index 7d5fe33866a..cfbea0efa9e 100644 --- a/tests/files2/redeclaration1.go +++ b/tests/files2/redeclaration1.gno @@ -9,4 +9,4 @@ func main() { } // Error: -// files2/redeclaration1.go:6:6: foo redeclared in this block +// files2/redeclaration1.gno:6:6: foo redeclared in this block diff --git a/tests/files2/redeclaration2.gno b/tests/files2/redeclaration2.gno new file mode 100644 index 00000000000..5267c34c503 --- /dev/null +++ b/tests/files2/redeclaration2.gno @@ -0,0 +1,15 @@ +package main + +func main() { + var foo struct { + yolo string + } + + var foo int + foo = 2 + println(foo) +} + +// Error: +// files2/redeclaration2.gno:8:6: foo redeclared in this block +// previous declaration at files2/redeclaration2.gno:4:6 diff --git a/tests/files2/redeclaration2.go b/tests/files2/redeclaration2.go deleted file mode 100644 index f780f57f4bb..00000000000 --- a/tests/files2/redeclaration2.go +++ /dev/null @@ -1,15 +0,0 @@ -package main - -func main() { - var foo struct { - yolo string - } - - var foo int - foo = 2 - println(foo) -} - -// Error: -// files2/redeclaration2.go:8:6: foo redeclared in this block -// previous declaration at files2/redeclaration2.go:4:6 diff --git a/tests/files2/redeclaration3.go b/tests/files2/redeclaration3.gno similarity index 63% rename from tests/files2/redeclaration3.go rename to tests/files2/redeclaration3.gno index 24f50cad4ca..e8df72bd9b3 100644 --- a/tests/files2/redeclaration3.go +++ b/tests/files2/redeclaration3.gno @@ -10,4 +10,4 @@ func main() { } // Error: -// files2/redeclaration3.go:7:7: foo redeclared in this block +// files2/redeclaration3.gno:7:7: foo redeclared in this block diff --git a/tests/files/redeclaration4.go b/tests/files2/redeclaration4.gno similarity index 66% rename from tests/files/redeclaration4.go rename to tests/files2/redeclaration4.gno index e6828c506fe..41f45401322 100644 --- a/tests/files/redeclaration4.go +++ b/tests/files2/redeclaration4.gno @@ -11,4 +11,4 @@ func main() { } // Error: -// files/redeclaration4.go:8:7: foo redeclared in this block +// files2/redeclaration4.gno:8:7: foo redeclared in this block diff --git a/tests/files2/redeclaration5.go b/tests/files2/redeclaration5.gno similarity index 66% rename from tests/files2/redeclaration5.go rename to tests/files2/redeclaration5.gno index e15c959ee0f..419f877c707 100644 --- a/tests/files2/redeclaration5.go +++ b/tests/files2/redeclaration5.gno @@ -11,4 +11,4 @@ func main() { } // Error: -// files2/redeclaration5.go:8:7: foo redeclared in this block +// files2/redeclaration5.gno:8:7: foo redeclared in this block diff --git a/tests/files2/ret1.go b/tests/files2/ret1.gno similarity index 100% rename from tests/files2/ret1.go rename to tests/files2/ret1.gno diff --git a/tests/files2/ret10.go b/tests/files2/ret10.gno similarity index 100% rename from tests/files2/ret10.go rename to tests/files2/ret10.gno diff --git a/tests/files2/ret11.go b/tests/files2/ret11.gno similarity index 100% rename from tests/files2/ret11.go rename to tests/files2/ret11.gno diff --git a/tests/files2/ret12.go b/tests/files2/ret12.gno similarity index 100% rename from tests/files2/ret12.go rename to tests/files2/ret12.gno diff --git a/tests/files2/ret13.go b/tests/files2/ret13.gno similarity index 100% rename from tests/files2/ret13.go rename to tests/files2/ret13.gno diff --git a/tests/files2/ret14.go b/tests/files2/ret14.gno similarity index 100% rename from tests/files2/ret14.go rename to tests/files2/ret14.gno diff --git a/tests/files2/ret2.go b/tests/files2/ret2.gno similarity index 100% rename from tests/files2/ret2.go rename to tests/files2/ret2.gno diff --git a/tests/files2/ret3.go b/tests/files2/ret3.gno similarity index 100% rename from tests/files2/ret3.go rename to tests/files2/ret3.gno diff --git a/tests/files2/ret4.go b/tests/files2/ret4.gno similarity index 100% rename from tests/files2/ret4.go rename to tests/files2/ret4.gno diff --git a/tests/files2/ret5.go b/tests/files2/ret5.gno similarity index 100% rename from tests/files2/ret5.go rename to tests/files2/ret5.gno diff --git a/tests/files2/ret6.go b/tests/files2/ret6.gno similarity index 100% rename from tests/files2/ret6.go rename to tests/files2/ret6.gno diff --git a/tests/files2/ret7.go b/tests/files2/ret7.gno similarity index 100% rename from tests/files2/ret7.go rename to tests/files2/ret7.gno diff --git a/tests/files2/ret8.go b/tests/files2/ret8.gno similarity index 100% rename from tests/files2/ret8.go rename to tests/files2/ret8.gno diff --git a/tests/files2/ret9.go b/tests/files2/ret9.gno similarity index 100% rename from tests/files2/ret9.go rename to tests/files2/ret9.gno diff --git a/tests/files2/run0.go b/tests/files2/run0.gno similarity index 100% rename from tests/files2/run0.go rename to tests/files2/run0.gno diff --git a/tests/files2/run1.go b/tests/files2/run1.gno similarity index 100% rename from tests/files2/run1.go rename to tests/files2/run1.gno diff --git a/tests/files2/run10.go b/tests/files2/run10.gno similarity index 100% rename from tests/files2/run10.go rename to tests/files2/run10.gno diff --git a/tests/files2/run11.go b/tests/files2/run11.gno similarity index 100% rename from tests/files2/run11.go rename to tests/files2/run11.gno diff --git a/tests/files2/run12.go b/tests/files2/run12.gno similarity index 100% rename from tests/files2/run12.go rename to tests/files2/run12.gno diff --git a/tests/files2/run13.go b/tests/files2/run13.gno similarity index 100% rename from tests/files2/run13.go rename to tests/files2/run13.gno diff --git a/tests/files2/run4.go b/tests/files2/run4.gno similarity index 100% rename from tests/files2/run4.go rename to tests/files2/run4.gno diff --git a/tests/files2/run5.go b/tests/files2/run5.gno similarity index 100% rename from tests/files2/run5.go rename to tests/files2/run5.gno diff --git a/tests/files2/run6.go b/tests/files2/run6.gno similarity index 100% rename from tests/files2/run6.go rename to tests/files2/run6.gno diff --git a/tests/files2/run7.go b/tests/files2/run7.gno similarity index 100% rename from tests/files2/run7.go rename to tests/files2/run7.gno diff --git a/tests/files2/run8.go b/tests/files2/run8.gno similarity index 100% rename from tests/files2/run8.go rename to tests/files2/run8.gno diff --git a/tests/files2/run9.go b/tests/files2/run9.gno similarity index 100% rename from tests/files2/run9.go rename to tests/files2/run9.gno diff --git a/tests/files2/rune0.go b/tests/files2/rune0.gno similarity index 100% rename from tests/files2/rune0.go rename to tests/files2/rune0.gno diff --git a/tests/files2/rune1.go b/tests/files2/rune1.gno similarity index 100% rename from tests/files2/rune1.go rename to tests/files2/rune1.gno diff --git a/tests/files2/rune2.go b/tests/files2/rune2.gno similarity index 100% rename from tests/files2/rune2.go rename to tests/files2/rune2.gno diff --git a/tests/files2/scope0.go b/tests/files2/scope0.gno similarity index 100% rename from tests/files2/scope0.go rename to tests/files2/scope0.gno diff --git a/tests/files2/scope1.go b/tests/files2/scope1.gno similarity index 100% rename from tests/files2/scope1.go rename to tests/files2/scope1.gno diff --git a/tests/files2/scope2.go b/tests/files2/scope2.gno similarity index 100% rename from tests/files2/scope2.go rename to tests/files2/scope2.gno diff --git a/tests/files2/scope3.go b/tests/files2/scope3.gno similarity index 100% rename from tests/files2/scope3.go rename to tests/files2/scope3.gno diff --git a/tests/files2/scope4.go b/tests/files2/scope4.gno similarity index 100% rename from tests/files2/scope4.go rename to tests/files2/scope4.gno diff --git a/tests/files2/scope5.go b/tests/files2/scope5.gno similarity index 100% rename from tests/files2/scope5.go rename to tests/files2/scope5.gno diff --git a/tests/files2/scope6.go b/tests/files2/scope6.gno similarity index 100% rename from tests/files2/scope6.go rename to tests/files2/scope6.gno diff --git a/tests/files2/scope7.go b/tests/files2/scope7.gno similarity index 100% rename from tests/files2/scope7.go rename to tests/files2/scope7.gno diff --git a/tests/files2/shift0.go b/tests/files2/shift0.gno similarity index 100% rename from tests/files2/shift0.go rename to tests/files2/shift0.gno diff --git a/tests/files2/shift1.go b/tests/files2/shift1.gno similarity index 100% rename from tests/files2/shift1.go rename to tests/files2/shift1.gno diff --git a/tests/files2/shift2.go b/tests/files2/shift2.gno similarity index 100% rename from tests/files2/shift2.go rename to tests/files2/shift2.gno diff --git a/tests/files2/shift3.go b/tests/files2/shift3.gno similarity index 100% rename from tests/files2/shift3.go rename to tests/files2/shift3.gno diff --git a/tests/files2/shift4.go b/tests/files2/shift4.gno similarity index 100% rename from tests/files2/shift4.go rename to tests/files2/shift4.gno diff --git a/tests/files2/shift5.go b/tests/files2/shift5.gno similarity index 100% rename from tests/files2/shift5.go rename to tests/files2/shift5.gno diff --git a/tests/files/slice.go b/tests/files2/slice.gno similarity index 51% rename from tests/files/slice.go rename to tests/files2/slice.gno index 1a734757503..2c51d62e1e4 100644 --- a/tests/files/slice.go +++ b/tests/files2/slice.gno @@ -3,8 +3,8 @@ package main import "fmt" func main() { - a := [2][2]int{{0, 1}, {2, 3}} - fmt.Println(a[0][0:]) + a := [2][2]int{{0, 1}, {2, 3}} + fmt.Println(a[0][0:]) } // Output: diff --git a/tests/files2/std0.go b/tests/files2/std0.gno similarity index 100% rename from tests/files2/std0.go rename to tests/files2/std0.gno diff --git a/tests/files2/std1.go b/tests/files2/std1.gno similarity index 100% rename from tests/files2/std1.go rename to tests/files2/std1.gno diff --git a/tests/files2/std2.go b/tests/files2/std2.gno similarity index 100% rename from tests/files2/std2.go rename to tests/files2/std2.gno diff --git a/tests/files2/std3.go b/tests/files2/std3.gno similarity index 100% rename from tests/files2/std3.go rename to tests/files2/std3.gno diff --git a/tests/files2/std4.go b/tests/files2/std4.gno similarity index 100% rename from tests/files2/std4.go rename to tests/files2/std4.gno diff --git a/tests/files2/std5.go b/tests/files2/std5.gno similarity index 100% rename from tests/files2/std5.go rename to tests/files2/std5.gno diff --git a/tests/files2/std6.go b/tests/files2/std6.gno similarity index 100% rename from tests/files2/std6.go rename to tests/files2/std6.gno diff --git a/tests/files2/std7.go b/tests/files2/std7.gno similarity index 100% rename from tests/files2/std7.go rename to tests/files2/std7.gno diff --git a/tests/files2/std8.go b/tests/files2/std8.gno similarity index 100% rename from tests/files2/std8.go rename to tests/files2/std8.gno diff --git a/tests/files2/str.go b/tests/files2/str.gno similarity index 100% rename from tests/files2/str.go rename to tests/files2/str.gno diff --git a/tests/files2/str0.go b/tests/files2/str0.gno similarity index 100% rename from tests/files2/str0.go rename to tests/files2/str0.gno diff --git a/tests/files2/str1.go b/tests/files2/str1.gno similarity index 100% rename from tests/files2/str1.go rename to tests/files2/str1.gno diff --git a/tests/files2/str2.go b/tests/files2/str2.gno similarity index 100% rename from tests/files2/str2.go rename to tests/files2/str2.gno diff --git a/tests/files2/str3.go b/tests/files2/str3.gno similarity index 100% rename from tests/files2/str3.go rename to tests/files2/str3.gno diff --git a/tests/files2/str4.go b/tests/files2/str4.gno similarity index 100% rename from tests/files2/str4.go rename to tests/files2/str4.gno diff --git a/tests/files2/struct.go b/tests/files2/struct.gno similarity index 100% rename from tests/files2/struct.go rename to tests/files2/struct.gno diff --git a/tests/files2/struct0.go b/tests/files2/struct0.gno similarity index 100% rename from tests/files2/struct0.go rename to tests/files2/struct0.gno diff --git a/tests/files2/struct0a.go b/tests/files2/struct0a.gno similarity index 100% rename from tests/files2/struct0a.go rename to tests/files2/struct0a.gno diff --git a/tests/files2/struct1.go b/tests/files2/struct1.gno similarity index 100% rename from tests/files2/struct1.go rename to tests/files2/struct1.gno diff --git a/tests/files2/struct10.go b/tests/files2/struct10.gno similarity index 100% rename from tests/files2/struct10.go rename to tests/files2/struct10.gno diff --git a/tests/files2/struct11.go b/tests/files2/struct11.gno similarity index 100% rename from tests/files2/struct11.go rename to tests/files2/struct11.gno diff --git a/tests/files2/struct11b.go b/tests/files2/struct11b.gno similarity index 100% rename from tests/files2/struct11b.go rename to tests/files2/struct11b.gno diff --git a/tests/files2/struct12.go b/tests/files2/struct12.gno similarity index 100% rename from tests/files2/struct12.go rename to tests/files2/struct12.gno diff --git a/tests/files2/struct13.go b/tests/files2/struct13.gno similarity index 100% rename from tests/files2/struct13.go rename to tests/files2/struct13.gno diff --git a/tests/files2/struct14.go b/tests/files2/struct14.gno similarity index 100% rename from tests/files2/struct14.go rename to tests/files2/struct14.gno diff --git a/tests/files2/struct16.go b/tests/files2/struct16.gno similarity index 100% rename from tests/files2/struct16.go rename to tests/files2/struct16.gno diff --git a/tests/files2/struct17.go b/tests/files2/struct17.gno similarity index 100% rename from tests/files2/struct17.go rename to tests/files2/struct17.gno diff --git a/tests/files2/struct19.go b/tests/files2/struct19.gno similarity index 100% rename from tests/files2/struct19.go rename to tests/files2/struct19.gno diff --git a/tests/files2/struct2.go b/tests/files2/struct2.gno similarity index 100% rename from tests/files2/struct2.go rename to tests/files2/struct2.gno diff --git a/tests/files2/struct20.go b/tests/files2/struct20.gno similarity index 100% rename from tests/files2/struct20.go rename to tests/files2/struct20.gno diff --git a/tests/files2/struct21.go b/tests/files2/struct21.gno similarity index 100% rename from tests/files2/struct21.go rename to tests/files2/struct21.gno diff --git a/tests/files2/struct22.go b/tests/files2/struct22.gno similarity index 100% rename from tests/files2/struct22.go rename to tests/files2/struct22.gno diff --git a/tests/files2/struct24.go b/tests/files2/struct24.gno similarity index 100% rename from tests/files2/struct24.go rename to tests/files2/struct24.gno diff --git a/tests/files2/struct25.go b/tests/files2/struct25.gno similarity index 100% rename from tests/files2/struct25.go rename to tests/files2/struct25.gno diff --git a/tests/files2/struct26.go b/tests/files2/struct26.gno similarity index 100% rename from tests/files2/struct26.go rename to tests/files2/struct26.gno diff --git a/tests/files2/struct27.go b/tests/files2/struct27.gno similarity index 100% rename from tests/files2/struct27.go rename to tests/files2/struct27.gno diff --git a/tests/files2/struct28b.go b/tests/files2/struct28b.gno similarity index 100% rename from tests/files2/struct28b.go rename to tests/files2/struct28b.gno diff --git a/tests/files2/struct29.go b/tests/files2/struct29.gno similarity index 100% rename from tests/files2/struct29.go rename to tests/files2/struct29.gno diff --git a/tests/files2/struct3.go b/tests/files2/struct3.gno similarity index 100% rename from tests/files2/struct3.go rename to tests/files2/struct3.gno diff --git a/tests/files2/struct30.go b/tests/files2/struct30.gno similarity index 100% rename from tests/files2/struct30.go rename to tests/files2/struct30.gno diff --git a/tests/files2/struct31.go b/tests/files2/struct31.gno similarity index 100% rename from tests/files2/struct31.go rename to tests/files2/struct31.gno diff --git a/tests/files2/struct32.go b/tests/files2/struct32.gno similarity index 100% rename from tests/files2/struct32.go rename to tests/files2/struct32.gno diff --git a/tests/files2/struct33.go b/tests/files2/struct33.gno similarity index 100% rename from tests/files2/struct33.go rename to tests/files2/struct33.gno diff --git a/tests/files2/struct34.go b/tests/files2/struct34.gno similarity index 100% rename from tests/files2/struct34.go rename to tests/files2/struct34.gno diff --git a/tests/files2/struct35.go b/tests/files2/struct35.gno similarity index 100% rename from tests/files2/struct35.go rename to tests/files2/struct35.gno diff --git a/tests/files2/struct36.go b/tests/files2/struct36.gno similarity index 100% rename from tests/files2/struct36.go rename to tests/files2/struct36.gno diff --git a/tests/files2/struct37.go b/tests/files2/struct37.gno similarity index 100% rename from tests/files2/struct37.go rename to tests/files2/struct37.gno diff --git a/tests/files2/struct38.go b/tests/files2/struct38.gno similarity index 100% rename from tests/files2/struct38.go rename to tests/files2/struct38.gno diff --git a/tests/files2/struct39.go b/tests/files2/struct39.gno similarity index 100% rename from tests/files2/struct39.go rename to tests/files2/struct39.gno diff --git a/tests/files2/struct4.go b/tests/files2/struct4.gno similarity index 100% rename from tests/files2/struct4.go rename to tests/files2/struct4.gno diff --git a/tests/files2/struct40.go b/tests/files2/struct40.gno similarity index 100% rename from tests/files2/struct40.go rename to tests/files2/struct40.gno diff --git a/tests/files2/struct41.go b/tests/files2/struct41.gno similarity index 100% rename from tests/files2/struct41.go rename to tests/files2/struct41.gno diff --git a/tests/files2/struct42.go b/tests/files2/struct42.gno similarity index 100% rename from tests/files2/struct42.go rename to tests/files2/struct42.gno diff --git a/tests/files2/struct43.go b/tests/files2/struct43.gno similarity index 100% rename from tests/files2/struct43.go rename to tests/files2/struct43.gno diff --git a/tests/files2/struct44.go b/tests/files2/struct44.gno similarity index 100% rename from tests/files2/struct44.go rename to tests/files2/struct44.gno diff --git a/tests/files2/struct45.go b/tests/files2/struct45.gno similarity index 100% rename from tests/files2/struct45.go rename to tests/files2/struct45.gno diff --git a/tests/files2/struct46.go b/tests/files2/struct46.gno similarity index 100% rename from tests/files2/struct46.go rename to tests/files2/struct46.gno diff --git a/tests/files2/struct47.go b/tests/files2/struct47.gno similarity index 100% rename from tests/files2/struct47.go rename to tests/files2/struct47.gno diff --git a/tests/files2/struct48.go b/tests/files2/struct48.gno similarity index 100% rename from tests/files2/struct48.go rename to tests/files2/struct48.gno diff --git a/tests/files2/struct49.go b/tests/files2/struct49.gno similarity index 94% rename from tests/files2/struct49.go rename to tests/files2/struct49.gno index 8e574770c68..c8705d0e95a 100644 --- a/tests/files2/struct49.go +++ b/tests/files2/struct49.gno @@ -25,7 +25,7 @@ func main() { } s.ts["test"] = append(s.ts["test"], &T{s: s}) - t , ok:= s.getT("test") + t, ok := s.getT("test") println(t != nil, ok) } diff --git a/tests/files2/struct5.go b/tests/files2/struct5.gno similarity index 100% rename from tests/files2/struct5.go rename to tests/files2/struct5.gno diff --git a/tests/files2/struct50b.go b/tests/files2/struct50b.gno similarity index 100% rename from tests/files2/struct50b.go rename to tests/files2/struct50b.gno diff --git a/tests/files2/struct52b.go b/tests/files2/struct52b.gno similarity index 100% rename from tests/files2/struct52b.go rename to tests/files2/struct52b.gno diff --git a/tests/files2/struct53b.go b/tests/files2/struct53b.gno similarity index 100% rename from tests/files2/struct53b.go rename to tests/files2/struct53b.gno diff --git a/tests/files2/struct54.go b/tests/files2/struct54.gno similarity index 100% rename from tests/files2/struct54.go rename to tests/files2/struct54.gno diff --git a/tests/files2/struct56.go b/tests/files2/struct56.gno similarity index 100% rename from tests/files2/struct56.go rename to tests/files2/struct56.gno diff --git a/tests/files2/struct57.go b/tests/files2/struct57.gno similarity index 100% rename from tests/files2/struct57.go rename to tests/files2/struct57.gno diff --git a/tests/files2/struct6.go b/tests/files2/struct6.gno similarity index 100% rename from tests/files2/struct6.go rename to tests/files2/struct6.gno diff --git a/tests/files2/struct7.go b/tests/files2/struct7.gno similarity index 100% rename from tests/files2/struct7.go rename to tests/files2/struct7.gno diff --git a/tests/files2/struct8.go b/tests/files2/struct8.gno similarity index 100% rename from tests/files2/struct8.go rename to tests/files2/struct8.gno diff --git a/tests/files2/struct9.go b/tests/files2/struct9.gno similarity index 100% rename from tests/files2/struct9.go rename to tests/files2/struct9.gno diff --git a/tests/files2/switch.go b/tests/files2/switch.gno similarity index 100% rename from tests/files2/switch.go rename to tests/files2/switch.gno diff --git a/tests/files2/switch0.go b/tests/files2/switch0.gno similarity index 100% rename from tests/files2/switch0.go rename to tests/files2/switch0.gno diff --git a/tests/files2/switch1.go b/tests/files2/switch1.gno similarity index 100% rename from tests/files2/switch1.go rename to tests/files2/switch1.gno diff --git a/tests/files2/switch10.go b/tests/files2/switch10.gno similarity index 100% rename from tests/files2/switch10.go rename to tests/files2/switch10.gno diff --git a/tests/files2/switch11.go b/tests/files2/switch11.gno similarity index 100% rename from tests/files2/switch11.go rename to tests/files2/switch11.gno diff --git a/tests/files2/switch12.go b/tests/files2/switch12.gno similarity index 100% rename from tests/files2/switch12.go rename to tests/files2/switch12.gno diff --git a/tests/files2/switch13.go b/tests/files2/switch13.gno similarity index 100% rename from tests/files2/switch13.go rename to tests/files2/switch13.gno diff --git a/tests/files2/switch14.go b/tests/files2/switch14.gno similarity index 100% rename from tests/files2/switch14.go rename to tests/files2/switch14.gno diff --git a/tests/files2/switch15.go b/tests/files2/switch15.gno similarity index 100% rename from tests/files2/switch15.go rename to tests/files2/switch15.gno diff --git a/tests/files2/switch16.go b/tests/files2/switch16.gno similarity index 100% rename from tests/files2/switch16.go rename to tests/files2/switch16.gno diff --git a/tests/files2/switch17.go b/tests/files2/switch17.gno similarity index 100% rename from tests/files2/switch17.go rename to tests/files2/switch17.gno diff --git a/tests/files2/switch18.go b/tests/files2/switch18.gno similarity index 100% rename from tests/files2/switch18.go rename to tests/files2/switch18.gno diff --git a/tests/files2/switch19.go b/tests/files2/switch19.gno similarity index 100% rename from tests/files2/switch19.go rename to tests/files2/switch19.gno diff --git a/tests/files2/switch2.go b/tests/files2/switch2.gno similarity index 100% rename from tests/files2/switch2.go rename to tests/files2/switch2.gno diff --git a/tests/files2/switch20.go b/tests/files2/switch20.gno similarity index 100% rename from tests/files2/switch20.go rename to tests/files2/switch20.gno diff --git a/tests/files2/switch21.go b/tests/files2/switch21.gno similarity index 100% rename from tests/files2/switch21.go rename to tests/files2/switch21.gno diff --git a/tests/files2/switch22.go b/tests/files2/switch22.gno similarity index 100% rename from tests/files2/switch22.go rename to tests/files2/switch22.gno diff --git a/tests/files2/switch23.go b/tests/files2/switch23.gno similarity index 100% rename from tests/files2/switch23.go rename to tests/files2/switch23.gno diff --git a/tests/files2/switch24.go b/tests/files2/switch24.gno similarity index 100% rename from tests/files2/switch24.go rename to tests/files2/switch24.gno diff --git a/tests/files2/switch25.go b/tests/files2/switch25.gno similarity index 100% rename from tests/files2/switch25.go rename to tests/files2/switch25.gno diff --git a/tests/files2/switch26.go b/tests/files2/switch26.gno similarity index 100% rename from tests/files2/switch26.go rename to tests/files2/switch26.gno diff --git a/tests/files2/switch27.go b/tests/files2/switch27.gno similarity index 100% rename from tests/files2/switch27.go rename to tests/files2/switch27.gno diff --git a/tests/files2/switch28.go b/tests/files2/switch28.gno similarity index 100% rename from tests/files2/switch28.go rename to tests/files2/switch28.gno diff --git a/tests/files2/switch29.go b/tests/files2/switch29.gno similarity index 100% rename from tests/files2/switch29.go rename to tests/files2/switch29.gno diff --git a/tests/files2/switch30.go b/tests/files2/switch30.gno similarity index 100% rename from tests/files2/switch30.go rename to tests/files2/switch30.gno diff --git a/tests/files2/switch31.go b/tests/files2/switch31.gno similarity index 100% rename from tests/files2/switch31.go rename to tests/files2/switch31.gno diff --git a/tests/files2/switch32.go b/tests/files2/switch32.gno similarity index 100% rename from tests/files2/switch32.go rename to tests/files2/switch32.gno diff --git a/tests/files2/switch33.go b/tests/files2/switch33.gno similarity index 100% rename from tests/files2/switch33.go rename to tests/files2/switch33.gno diff --git a/tests/files2/switch34.go b/tests/files2/switch34.gno similarity index 100% rename from tests/files2/switch34.go rename to tests/files2/switch34.gno diff --git a/tests/files2/switch35.go b/tests/files2/switch35.gno similarity index 100% rename from tests/files2/switch35.go rename to tests/files2/switch35.gno diff --git a/tests/files2/switch36.go b/tests/files2/switch36.gno similarity index 100% rename from tests/files2/switch36.go rename to tests/files2/switch36.gno diff --git a/tests/files2/switch37.go b/tests/files2/switch37.gno similarity index 100% rename from tests/files2/switch37.go rename to tests/files2/switch37.gno diff --git a/tests/files2/switch38.go b/tests/files2/switch38.gno similarity index 100% rename from tests/files2/switch38.go rename to tests/files2/switch38.gno diff --git a/tests/files2/switch5.go b/tests/files2/switch5.gno similarity index 100% rename from tests/files2/switch5.go rename to tests/files2/switch5.gno diff --git a/tests/files2/switch7.go b/tests/files2/switch7.gno similarity index 100% rename from tests/files2/switch7.go rename to tests/files2/switch7.gno diff --git a/tests/files2/time0.go b/tests/files2/time0.gno similarity index 100% rename from tests/files2/time0.go rename to tests/files2/time0.gno diff --git a/tests/files2/time1.go b/tests/files2/time1.gno similarity index 100% rename from tests/files2/time1.go rename to tests/files2/time1.gno diff --git a/tests/files2/time11.go b/tests/files2/time11.gno similarity index 100% rename from tests/files2/time11.go rename to tests/files2/time11.gno diff --git a/tests/files2/time12.go b/tests/files2/time12.gno similarity index 100% rename from tests/files2/time12.go rename to tests/files2/time12.gno diff --git a/tests/files2/time13.go b/tests/files2/time13.gno similarity index 100% rename from tests/files2/time13.go rename to tests/files2/time13.gno diff --git a/tests/files2/time14.go b/tests/files2/time14.gno similarity index 100% rename from tests/files2/time14.go rename to tests/files2/time14.gno diff --git a/tests/files2/time15.go b/tests/files2/time15.gno similarity index 100% rename from tests/files2/time15.go rename to tests/files2/time15.gno diff --git a/tests/files2/time2.go b/tests/files2/time2.gno similarity index 100% rename from tests/files2/time2.go rename to tests/files2/time2.gno diff --git a/tests/files2/time3.go b/tests/files2/time3.gno similarity index 100% rename from tests/files2/time3.go rename to tests/files2/time3.gno diff --git a/tests/files2/time4.go b/tests/files2/time4.gno similarity index 100% rename from tests/files2/time4.go rename to tests/files2/time4.gno diff --git a/tests/files2/time6.go b/tests/files2/time6.gno similarity index 100% rename from tests/files2/time6.go rename to tests/files2/time6.gno diff --git a/tests/files2/time7.go b/tests/files2/time7.gno similarity index 100% rename from tests/files2/time7.go rename to tests/files2/time7.gno diff --git a/tests/files2/time8.go b/tests/files2/time8.gno similarity index 100% rename from tests/files2/time8.go rename to tests/files2/time8.gno diff --git a/tests/files2/time9.go b/tests/files2/time9.gno similarity index 100% rename from tests/files2/time9.go rename to tests/files2/time9.gno diff --git a/tests/files2/type0.go b/tests/files2/type0.gno similarity index 100% rename from tests/files2/type0.go rename to tests/files2/type0.gno diff --git a/tests/files2/type1.go b/tests/files2/type1.gno similarity index 100% rename from tests/files2/type1.go rename to tests/files2/type1.gno diff --git a/tests/files2/type11.go b/tests/files2/type11.gno similarity index 100% rename from tests/files2/type11.go rename to tests/files2/type11.gno diff --git a/tests/files2/type12.go b/tests/files2/type12.gno similarity index 100% rename from tests/files2/type12.go rename to tests/files2/type12.gno diff --git a/tests/files2/type13.go b/tests/files2/type13.gno similarity index 100% rename from tests/files2/type13.go rename to tests/files2/type13.gno diff --git a/tests/files2/type14.go b/tests/files2/type14.gno similarity index 100% rename from tests/files2/type14.go rename to tests/files2/type14.gno diff --git a/tests/files2/type15.go b/tests/files2/type15.gno similarity index 100% rename from tests/files2/type15.go rename to tests/files2/type15.gno diff --git a/tests/files2/type16.go b/tests/files2/type16.gno similarity index 100% rename from tests/files2/type16.go rename to tests/files2/type16.gno diff --git a/tests/files2/type17.go b/tests/files2/type17.gno similarity index 100% rename from tests/files2/type17.go rename to tests/files2/type17.gno diff --git a/tests/files2/type18.go b/tests/files2/type18.gno similarity index 100% rename from tests/files2/type18.go rename to tests/files2/type18.gno diff --git a/tests/files2/type19.go b/tests/files2/type19.gno similarity index 100% rename from tests/files2/type19.go rename to tests/files2/type19.gno diff --git a/tests/files2/type2.go b/tests/files2/type2.gno similarity index 100% rename from tests/files2/type2.go rename to tests/files2/type2.gno diff --git a/tests/files2/type20.go b/tests/files2/type20.gno similarity index 100% rename from tests/files2/type20.go rename to tests/files2/type20.gno diff --git a/tests/files2/type22.go b/tests/files2/type22.gno similarity index 100% rename from tests/files2/type22.go rename to tests/files2/type22.gno diff --git a/tests/files2/type23b.go b/tests/files2/type23b.gno similarity index 100% rename from tests/files2/type23b.go rename to tests/files2/type23b.gno diff --git a/tests/files2/type24b.go b/tests/files2/type24b.gno similarity index 100% rename from tests/files2/type24b.go rename to tests/files2/type24b.gno diff --git a/tests/files2/type3.go b/tests/files2/type3.gno similarity index 100% rename from tests/files2/type3.go rename to tests/files2/type3.gno diff --git a/tests/files2/type7.go b/tests/files2/type7.gno similarity index 100% rename from tests/files2/type7.go rename to tests/files2/type7.gno diff --git a/tests/files2/type8.go b/tests/files2/type8.gno similarity index 100% rename from tests/files2/type8.go rename to tests/files2/type8.gno diff --git a/tests/files2/unary.go b/tests/files2/unary.gno similarity index 100% rename from tests/files2/unary.go rename to tests/files2/unary.gno diff --git a/tests/files2/unary1.go b/tests/files2/unary1.gno similarity index 100% rename from tests/files2/unary1.go rename to tests/files2/unary1.gno diff --git a/tests/files2/untyped0.go b/tests/files2/untyped0.gno similarity index 100% rename from tests/files2/untyped0.go rename to tests/files2/untyped0.gno diff --git a/tests/files2/untyped1.go b/tests/files2/untyped1.gno similarity index 100% rename from tests/files2/untyped1.go rename to tests/files2/untyped1.gno diff --git a/tests/files2/var.go b/tests/files2/var.gno similarity index 100% rename from tests/files2/var.go rename to tests/files2/var.gno diff --git a/tests/files2/var10.go b/tests/files2/var10.gno similarity index 100% rename from tests/files2/var10.go rename to tests/files2/var10.gno diff --git a/tests/files2/var11.go b/tests/files2/var11.gno similarity index 100% rename from tests/files2/var11.go rename to tests/files2/var11.gno diff --git a/tests/files2/var12.go b/tests/files2/var12.gno similarity index 100% rename from tests/files2/var12.go rename to tests/files2/var12.gno diff --git a/tests/files2/var13.go b/tests/files2/var13.gno similarity index 100% rename from tests/files2/var13.go rename to tests/files2/var13.gno diff --git a/tests/files2/var14.go b/tests/files2/var14.gno similarity index 100% rename from tests/files2/var14.go rename to tests/files2/var14.gno diff --git a/tests/files2/var15.go b/tests/files2/var15.gno similarity index 100% rename from tests/files2/var15.go rename to tests/files2/var15.gno diff --git a/tests/files2/var16.go b/tests/files2/var16.gno similarity index 100% rename from tests/files2/var16.go rename to tests/files2/var16.gno diff --git a/tests/files2/var17.go b/tests/files2/var17.gno similarity index 100% rename from tests/files2/var17.go rename to tests/files2/var17.gno diff --git a/tests/files2/var2.go b/tests/files2/var2.gno similarity index 100% rename from tests/files2/var2.go rename to tests/files2/var2.gno diff --git a/tests/files2/var3.go b/tests/files2/var3.gno similarity index 100% rename from tests/files2/var3.go rename to tests/files2/var3.gno diff --git a/tests/files2/var4.go b/tests/files2/var4.gno similarity index 100% rename from tests/files2/var4.go rename to tests/files2/var4.gno diff --git a/tests/files2/var5.go b/tests/files2/var5.gno similarity index 100% rename from tests/files2/var5.go rename to tests/files2/var5.gno diff --git a/tests/files2/var6.go b/tests/files2/var6.gno similarity index 100% rename from tests/files2/var6.go rename to tests/files2/var6.gno diff --git a/tests/files2/var7.go b/tests/files2/var7.gno similarity index 100% rename from tests/files2/var7.go rename to tests/files2/var7.gno diff --git a/tests/files2/var9.go b/tests/files2/var9.gno similarity index 100% rename from tests/files2/var9.go rename to tests/files2/var9.gno diff --git a/tests/files2/variadic.go b/tests/files2/variadic.gno similarity index 100% rename from tests/files2/variadic.go rename to tests/files2/variadic.gno diff --git a/tests/files2/variadic0.go b/tests/files2/variadic0.gno similarity index 100% rename from tests/files2/variadic0.go rename to tests/files2/variadic0.gno diff --git a/tests/files2/variadic1.go b/tests/files2/variadic1.gno similarity index 100% rename from tests/files2/variadic1.go rename to tests/files2/variadic1.gno diff --git a/tests/files2/variadic2.go b/tests/files2/variadic2.gno similarity index 100% rename from tests/files2/variadic2.go rename to tests/files2/variadic2.gno diff --git a/tests/files2/variadic3.go b/tests/files2/variadic3.gno similarity index 100% rename from tests/files2/variadic3.go rename to tests/files2/variadic3.gno diff --git a/tests/files2/variadic4.go b/tests/files2/variadic4.gno similarity index 100% rename from tests/files2/variadic4.go rename to tests/files2/variadic4.gno diff --git a/tests/files2/variadic5.go b/tests/files2/variadic5.gno similarity index 100% rename from tests/files2/variadic5.go rename to tests/files2/variadic5.gno diff --git a/tests/files2/variadic6.go b/tests/files2/variadic6.gno similarity index 100% rename from tests/files2/variadic6.go rename to tests/files2/variadic6.gno diff --git a/tests/files2/xfactor.go b/tests/files2/xfactor.gno similarity index 100% rename from tests/files2/xfactor.go rename to tests/files2/xfactor.gno diff --git a/tests/files2/xfib.go b/tests/files2/xfib.gno similarity index 100% rename from tests/files2/xfib.go rename to tests/files2/xfib.gno diff --git a/tests/files2/zavltree.go b/tests/files2/zavltree.gno similarity index 100% rename from tests/files2/zavltree.go rename to tests/files2/zavltree.gno diff --git a/tests/files2/zavltree0.go b/tests/files2/zavltree0.gno similarity index 100% rename from tests/files2/zavltree0.go rename to tests/files2/zavltree0.gno diff --git a/tests/files2/zavltree1.go b/tests/files2/zavltree1.gno similarity index 100% rename from tests/files2/zavltree1.go rename to tests/files2/zavltree1.gno diff --git a/tests/files/zrealm0.go b/tests/files2/zrealm0.gno similarity index 96% rename from tests/files/zrealm0.go rename to tests/files2/zrealm0.gno index d5962a55f37..73020589e37 100644 --- a/tests/files/zrealm0.go +++ b/tests/files2/zrealm0.gno @@ -53,7 +53,7 @@ func main() { // "Escaped": true, // "ObjectID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:3" // }, -// "FileName": "main.go", +// "FileName": "main.gno", // "IsMethod": false, // "Name": "main", // "PkgPath": "gno.land/r/test", @@ -61,7 +61,7 @@ func main() { // "@type": "/gno.nref", // "BlockNode": null, // "Location": { -// "File": "main.go", +// "File": "main.gno", // "Line": "6", // "Nonce": "0", // "PkgPath": "gno.land/r/test" diff --git a/tests/files/zrealm1.go b/tests/files2/zrealm1.gno similarity index 98% rename from tests/files/zrealm1.go rename to tests/files2/zrealm1.gno index 9261b1a6219..15f105da9fe 100644 --- a/tests/files/zrealm1.go +++ b/tests/files2/zrealm1.gno @@ -165,7 +165,7 @@ func main() { // "Escaped": true, // "ObjectID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:3" // }, -// "FileName": "main.go", +// "FileName": "main.gno", // "IsMethod": false, // "Name": "main", // "PkgPath": "gno.land/r/test", @@ -173,7 +173,7 @@ func main() { // "@type": "/gno.nref", // "BlockNode": null, // "Location": { -// "File": "main.go", +// "File": "main.gno", // "Line": "15", // "Nonce": "0", // "PkgPath": "gno.land/r/test" diff --git a/tests/files/zrealm2.go b/tests/files2/zrealm2.gno similarity index 97% rename from tests/files/zrealm2.go rename to tests/files2/zrealm2.gno index 49464ded2e4..1d614edf292 100644 --- a/tests/files/zrealm2.go +++ b/tests/files2/zrealm2.gno @@ -168,7 +168,7 @@ func main() { // "Escaped": true, // "ObjectID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:3" // }, -// "FileName": "main.go", +// "FileName": "main.gno", // "IsMethod": false, // "Name": "init.3", // "PkgPath": "gno.land/r/test", @@ -176,7 +176,7 @@ func main() { // "@type": "/gno.nref", // "BlockNode": null, // "Location": { -// "File": "main.go", +// "File": "main.gno", // "Line": "15", // "Nonce": "0", // "PkgPath": "gno.land/r/test" @@ -202,7 +202,7 @@ func main() { // "Escaped": true, // "ObjectID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:3" // }, -// "FileName": "main.go", +// "FileName": "main.gno", // "IsMethod": false, // "Name": "main", // "PkgPath": "gno.land/r/test", @@ -210,7 +210,7 @@ func main() { // "@type": "/gno.nref", // "BlockNode": null, // "Location": { -// "File": "main.go", +// "File": "main.gno", // "Line": "21", // "Nonce": "0", // "PkgPath": "gno.land/r/test" diff --git a/tests/files/zrealm3.go b/tests/files2/zrealm3.gno similarity index 97% rename from tests/files/zrealm3.go rename to tests/files2/zrealm3.gno index 31bf8cd80c1..6d6565171f9 100644 --- a/tests/files/zrealm3.go +++ b/tests/files2/zrealm3.gno @@ -169,7 +169,7 @@ func main() { // "Escaped": true, // "ObjectID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:3" // }, -// "FileName": "main.go", +// "FileName": "main.gno", // "IsMethod": false, // "Name": "init.2", // "PkgPath": "gno.land/r/test", @@ -177,7 +177,7 @@ func main() { // "@type": "/gno.nref", // "BlockNode": null, // "Location": { -// "File": "main.go", +// "File": "main.gno", // "Line": "14", // "Nonce": "0", // "PkgPath": "gno.land/r/test" @@ -203,7 +203,7 @@ func main() { // "Escaped": true, // "ObjectID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:3" // }, -// "FileName": "main.go", +// "FileName": "main.gno", // "IsMethod": false, // "Name": "main", // "PkgPath": "gno.land/r/test", @@ -211,7 +211,7 @@ func main() { // "@type": "/gno.nref", // "BlockNode": null, // "Location": { -// "File": "main.go", +// "File": "main.gno", // "Line": "20", // "Nonce": "0", // "PkgPath": "gno.land/r/test" diff --git a/tests/files/zrealm4.go b/tests/files2/zrealm4.gno similarity index 97% rename from tests/files/zrealm4.go rename to tests/files2/zrealm4.gno index c773b16965b..0046454485f 100644 --- a/tests/files/zrealm4.go +++ b/tests/files2/zrealm4.gno @@ -111,7 +111,7 @@ func main() { // "Escaped": true, // "ObjectID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:3" // }, -// "FileName": "main.go", +// "FileName": "main.gno", // "IsMethod": false, // "Name": "init.0", // "PkgPath": "gno.land/r/test", @@ -119,7 +119,7 @@ func main() { // "@type": "/gno.nref", // "BlockNode": null, // "Location": { -// "File": "main.go", +// "File": "main.gno", // "Line": "11", // "Nonce": "0", // "PkgPath": "gno.land/r/test" @@ -145,7 +145,7 @@ func main() { // "Escaped": true, // "ObjectID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:3" // }, -// "FileName": "main.go", +// "FileName": "main.gno", // "IsMethod": false, // "Name": "main", // "PkgPath": "gno.land/r/test", @@ -153,7 +153,7 @@ func main() { // "@type": "/gno.nref", // "BlockNode": null, // "Location": { -// "File": "main.go", +// "File": "main.gno", // "Line": "15", // "Nonce": "0", // "PkgPath": "gno.land/r/test" diff --git a/tests/files/zrealm5.go b/tests/files2/zrealm5.gno similarity index 97% rename from tests/files/zrealm5.go rename to tests/files2/zrealm5.gno index 33d3eb8b77a..ff0cc0d2d8c 100644 --- a/tests/files/zrealm5.go +++ b/tests/files2/zrealm5.gno @@ -182,7 +182,7 @@ func main() { // "Escaped": true, // "ObjectID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:3" // }, -// "FileName": "main.go", +// "FileName": "main.gno", // "IsMethod": false, // "Name": "init.0", // "PkgPath": "gno.land/r/test", @@ -190,7 +190,7 @@ func main() { // "@type": "/gno.nref", // "BlockNode": null, // "Location": { -// "File": "main.go", +// "File": "main.gno", // "Line": "11", // "Nonce": "0", // "PkgPath": "gno.land/r/test" @@ -216,7 +216,7 @@ func main() { // "Escaped": true, // "ObjectID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:3" // }, -// "FileName": "main.go", +// "FileName": "main.gno", // "IsMethod": false, // "Name": "main", // "PkgPath": "gno.land/r/test", @@ -224,7 +224,7 @@ func main() { // "@type": "/gno.nref", // "BlockNode": null, // "Location": { -// "File": "main.go", +// "File": "main.gno", // "Line": "15", // "Nonce": "0", // "PkgPath": "gno.land/r/test" diff --git a/tests/files/zrealm6.go b/tests/files2/zrealm6.gno similarity index 98% rename from tests/files/zrealm6.go rename to tests/files2/zrealm6.gno index f354e239ec6..64dd3fd5618 100644 --- a/tests/files/zrealm6.go +++ b/tests/files2/zrealm6.gno @@ -254,7 +254,7 @@ func main() { // "Escaped": true, // "ObjectID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:3" // }, -// "FileName": "main.go", +// "FileName": "main.gno", // "IsMethod": false, // "Name": "init.0", // "PkgPath": "gno.land/r/test", @@ -262,7 +262,7 @@ func main() { // "@type": "/gno.nref", // "BlockNode": null, // "Location": { -// "File": "main.go", +// "File": "main.gno", // "Line": "11", // "Nonce": "0", // "PkgPath": "gno.land/r/test" @@ -288,7 +288,7 @@ func main() { // "Escaped": true, // "ObjectID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:3" // }, -// "FileName": "main.go", +// "FileName": "main.gno", // "IsMethod": false, // "Name": "main", // "PkgPath": "gno.land/r/test", @@ -296,7 +296,7 @@ func main() { // "@type": "/gno.nref", // "BlockNode": null, // "Location": { -// "File": "main.go", +// "File": "main.gno", // "Line": "16", // "Nonce": "0", // "PkgPath": "gno.land/r/test" diff --git a/tests/files2/zrealm7.go b/tests/files2/zrealm7.gno similarity index 98% rename from tests/files2/zrealm7.go rename to tests/files2/zrealm7.gno index ec4e8f44c0f..ba7ef2a77ce 100644 --- a/tests/files2/zrealm7.go +++ b/tests/files2/zrealm7.gno @@ -326,7 +326,7 @@ func main() { // "Escaped": true, // "ObjectID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:3" // }, -// "FileName": "main.go", +// "FileName": "main.gno", // "IsMethod": false, // "Name": "init.0", // "PkgPath": "gno.land/r/test", @@ -334,7 +334,7 @@ func main() { // "@type": "/gno.nref", // "BlockNode": null, // "Location": { -// "File": "main.go", +// "File": "main.gno", // "Line": "11", // "Nonce": "0", // "PkgPath": "gno.land/r/test" @@ -360,7 +360,7 @@ func main() { // "Escaped": true, // "ObjectID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:3" // }, -// "FileName": "main.go", +// "FileName": "main.gno", // "IsMethod": false, // "Name": "main", // "PkgPath": "gno.land/r/test", @@ -368,7 +368,7 @@ func main() { // "@type": "/gno.nref", // "BlockNode": null, // "Location": { -// "File": "main.go", +// "File": "main.gno", // "Line": "17", // "Nonce": "0", // "PkgPath": "gno.land/r/test" diff --git a/tests/files2/zrealm_avl0.go b/tests/files2/zrealm_avl0.gno similarity index 98% rename from tests/files2/zrealm_avl0.go rename to tests/files2/zrealm_avl0.gno index 66b502569cf..ccff4cfc59d 100644 --- a/tests/files2/zrealm_avl0.go +++ b/tests/files2/zrealm_avl0.gno @@ -264,7 +264,7 @@ func main() { // "Escaped": true, // "ObjectID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:3" // }, -// "FileName": "main.go", +// "FileName": "main.gno", // "IsMethod": false, // "Name": "init.0", // "PkgPath": "gno.land/r/test", @@ -272,7 +272,7 @@ func main() { // "@type": "/gno.nref", // "BlockNode": null, // "Location": { -// "File": "main.go", +// "File": "main.gno", // "Line": "10", // "Nonce": "0", // "PkgPath": "gno.land/r/test" @@ -298,7 +298,7 @@ func main() { // "Escaped": true, // "ObjectID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:3" // }, -// "FileName": "main.go", +// "FileName": "main.gno", // "IsMethod": false, // "Name": "main", // "PkgPath": "gno.land/r/test", @@ -306,7 +306,7 @@ func main() { // "@type": "/gno.nref", // "BlockNode": null, // "Location": { -// "File": "main.go", +// "File": "main.gno", // "Line": "15", // "Nonce": "0", // "PkgPath": "gno.land/r/test" diff --git a/tests/files2/zrealm_avl1.go b/tests/files2/zrealm_avl1.gno similarity index 98% rename from tests/files2/zrealm_avl1.go rename to tests/files2/zrealm_avl1.gno index 85216b4f919..b79d9caba7d 100644 --- a/tests/files2/zrealm_avl1.go +++ b/tests/files2/zrealm_avl1.gno @@ -288,7 +288,7 @@ func main() { // "Escaped": true, // "ObjectID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:3" // }, -// "FileName": "main.go", +// "FileName": "main.gno", // "IsMethod": false, // "Name": "init.0", // "PkgPath": "gno.land/r/test", @@ -296,7 +296,7 @@ func main() { // "@type": "/gno.nref", // "BlockNode": null, // "Location": { -// "File": "main.go", +// "File": "main.gno", // "Line": "10", // "Nonce": "0", // "PkgPath": "gno.land/r/test" @@ -322,7 +322,7 @@ func main() { // "Escaped": true, // "ObjectID": "a8ada09dee16d791fd406d629fe29bb0ed084a30:3" // }, -// "FileName": "main.go", +// "FileName": "main.gno", // "IsMethod": false, // "Name": "main", // "PkgPath": "gno.land/r/test", @@ -330,7 +330,7 @@ func main() { // "@type": "/gno.nref", // "BlockNode": null, // "Location": { -// "File": "main.go", +// "File": "main.gno", // "Line": "15", // "Nonce": "0", // "PkgPath": "gno.land/r/test" diff --git a/tests/files2/zrealm_banktest0.go b/tests/files2/zrealm_banktest0.gno similarity index 100% rename from tests/files2/zrealm_banktest0.go rename to tests/files2/zrealm_banktest0.gno diff --git a/tests/files2/zrealm_banktest1.go b/tests/files2/zrealm_banktest1.gno similarity index 100% rename from tests/files2/zrealm_banktest1.go rename to tests/files2/zrealm_banktest1.gno diff --git a/tests/files2/zrealm_banktest2.go b/tests/files2/zrealm_banktest2.gno similarity index 100% rename from tests/files2/zrealm_banktest2.go rename to tests/files2/zrealm_banktest2.gno diff --git a/tests/files2/zrealm_boards0.go b/tests/files2/zrealm_boards0.gno similarity index 100% rename from tests/files2/zrealm_boards0.go rename to tests/files2/zrealm_boards0.gno diff --git a/tests/files2/zrealm_boards1.go b/tests/files2/zrealm_boards1.gno similarity index 100% rename from tests/files2/zrealm_boards1.go rename to tests/files2/zrealm_boards1.gno diff --git a/tests/files2/zrealm_boards2.go b/tests/files2/zrealm_boards2.gno similarity index 100% rename from tests/files2/zrealm_boards2.go rename to tests/files2/zrealm_boards2.gno diff --git a/tests/files2/zrealm_boards3.go b/tests/files2/zrealm_boards3.gno similarity index 100% rename from tests/files2/zrealm_boards3.go rename to tests/files2/zrealm_boards3.gno diff --git a/tests/files2/zrealm_boards4.go b/tests/files2/zrealm_boards4.gno similarity index 100% rename from tests/files2/zrealm_boards4.go rename to tests/files2/zrealm_boards4.gno diff --git a/tests/files2/zrealm_boards5.go b/tests/files2/zrealm_boards5.gno similarity index 100% rename from tests/files2/zrealm_boards5.go rename to tests/files2/zrealm_boards5.gno diff --git a/tests/files2/zrealm_boards6.go b/tests/files2/zrealm_boards6.gno similarity index 100% rename from tests/files2/zrealm_boards6.go rename to tests/files2/zrealm_boards6.gno diff --git a/tests/files2/zrealm_boards7.go b/tests/files2/zrealm_boards7.gno similarity index 100% rename from tests/files2/zrealm_boards7.go rename to tests/files2/zrealm_boards7.gno diff --git a/tests/files2/zrealm_boards8.go b/tests/files2/zrealm_boards8.gno similarity index 100% rename from tests/files2/zrealm_boards8.go rename to tests/files2/zrealm_boards8.gno diff --git a/tests/files2/zrealm_const.go b/tests/files2/zrealm_const.gno similarity index 100% rename from tests/files2/zrealm_const.go rename to tests/files2/zrealm_const.gno diff --git a/tests/files2/zrealm_crossrealm0.go b/tests/files2/zrealm_crossrealm0.gno similarity index 100% rename from tests/files2/zrealm_crossrealm0.go rename to tests/files2/zrealm_crossrealm0.gno diff --git a/tests/files2/zrealm_crossrealm1.go b/tests/files2/zrealm_crossrealm1.gno similarity index 100% rename from tests/files2/zrealm_crossrealm1.go rename to tests/files2/zrealm_crossrealm1.gno diff --git a/tests/files2/zrealm_crossrealm10.go b/tests/files2/zrealm_crossrealm10.gno similarity index 100% rename from tests/files2/zrealm_crossrealm10.go rename to tests/files2/zrealm_crossrealm10.gno diff --git a/tests/files2/zrealm_crossrealm2.go b/tests/files2/zrealm_crossrealm2.gno similarity index 100% rename from tests/files2/zrealm_crossrealm2.go rename to tests/files2/zrealm_crossrealm2.gno diff --git a/tests/files2/zrealm_crossrealm3.go b/tests/files2/zrealm_crossrealm3.gno similarity index 100% rename from tests/files2/zrealm_crossrealm3.go rename to tests/files2/zrealm_crossrealm3.gno diff --git a/tests/files2/zrealm_crossrealm4.go b/tests/files2/zrealm_crossrealm4.gno similarity index 100% rename from tests/files2/zrealm_crossrealm4.go rename to tests/files2/zrealm_crossrealm4.gno diff --git a/tests/files2/zrealm_crossrealm5.go b/tests/files2/zrealm_crossrealm5.gno similarity index 100% rename from tests/files2/zrealm_crossrealm5.go rename to tests/files2/zrealm_crossrealm5.gno diff --git a/tests/files2/zrealm_crossrealm6.go b/tests/files2/zrealm_crossrealm6.gno similarity index 100% rename from tests/files2/zrealm_crossrealm6.go rename to tests/files2/zrealm_crossrealm6.gno diff --git a/tests/files2/zrealm_crossrealm7.go b/tests/files2/zrealm_crossrealm7.gno similarity index 100% rename from tests/files2/zrealm_crossrealm7.go rename to tests/files2/zrealm_crossrealm7.gno diff --git a/tests/files2/zrealm_crossrealm8.go b/tests/files2/zrealm_crossrealm8.gno similarity index 100% rename from tests/files2/zrealm_crossrealm8.go rename to tests/files2/zrealm_crossrealm8.gno diff --git a/tests/files2/zrealm_crossrealm9.go b/tests/files2/zrealm_crossrealm9.gno similarity index 100% rename from tests/files2/zrealm_crossrealm9.go rename to tests/files2/zrealm_crossrealm9.gno diff --git a/tests/files2/zrealm_example.go b/tests/files2/zrealm_example.gno similarity index 100% rename from tests/files2/zrealm_example.go rename to tests/files2/zrealm_example.gno diff --git a/tests/files2/zrealm_groups1.go b/tests/files2/zrealm_groups1.gno similarity index 100% rename from tests/files2/zrealm_groups1.go rename to tests/files2/zrealm_groups1.gno diff --git a/tests/files2/zrealm_map0.go b/tests/files2/zrealm_map0.gno similarity index 100% rename from tests/files2/zrealm_map0.go rename to tests/files2/zrealm_map0.gno diff --git a/tests/files2/zrealm_nft0.go b/tests/files2/zrealm_nft0.gno similarity index 100% rename from tests/files2/zrealm_nft0.go rename to tests/files2/zrealm_nft0.gno diff --git a/tests/files2/zrealm_nft1.go b/tests/files2/zrealm_nft1.gno similarity index 100% rename from tests/files2/zrealm_nft1.go rename to tests/files2/zrealm_nft1.gno diff --git a/tests/files2/zrealm_nft2.go b/tests/files2/zrealm_nft2.gno similarity index 100% rename from tests/files2/zrealm_nft2.go rename to tests/files2/zrealm_nft2.gno diff --git a/tests/files2/zrealm_nft3.go b/tests/files2/zrealm_nft3.gno similarity index 100% rename from tests/files2/zrealm_nft3.go rename to tests/files2/zrealm_nft3.gno diff --git a/tests/files2/zrealm_nft4.go b/tests/files2/zrealm_nft4.gno similarity index 100% rename from tests/files2/zrealm_nft4.go rename to tests/files2/zrealm_nft4.gno diff --git a/tests/files2/zrealm_std0.go b/tests/files2/zrealm_std0.gno similarity index 100% rename from tests/files2/zrealm_std0.go rename to tests/files2/zrealm_std0.gno diff --git a/tests/files2/zrealm_std1.go b/tests/files2/zrealm_std1.gno similarity index 100% rename from tests/files2/zrealm_std1.go rename to tests/files2/zrealm_std1.gno diff --git a/tests/files/zrealm_std2.go b/tests/files2/zrealm_std2.gno similarity index 93% rename from tests/files/zrealm_std2.go rename to tests/files2/zrealm_std2.gno index 2f3428dcbbc..68c09a741d8 100644 --- a/tests/files/zrealm_std2.go +++ b/tests/files2/zrealm_std2.gno @@ -5,7 +5,7 @@ import ( "std" ) -// Like zrealm_std1.go but interface var. +// Like zrealm_std1.gno but interface var. var aset std.AddressSet func init() { diff --git a/tests/files2/zrealm_std3.go b/tests/files2/zrealm_std3.gno similarity index 100% rename from tests/files2/zrealm_std3.go rename to tests/files2/zrealm_std3.gno diff --git a/tests/files2/zrealm_std4.go b/tests/files2/zrealm_std4.gno similarity index 100% rename from tests/files2/zrealm_std4.go rename to tests/files2/zrealm_std4.gno diff --git a/tests/files2/zrealm_std5.go b/tests/files2/zrealm_std5.gno similarity index 100% rename from tests/files2/zrealm_std5.go rename to tests/files2/zrealm_std5.gno diff --git a/tests/files2/zrealm_tests0.go b/tests/files2/zrealm_tests0.gno similarity index 96% rename from tests/files2/zrealm_tests0.go rename to tests/files2/zrealm_tests0.gno index a26350f2664..c6324b645bf 100644 --- a/tests/files2/zrealm_tests0.go +++ b/tests/files2/zrealm_tests0.gno @@ -236,7 +236,7 @@ func main() { // "V": { // "@type": "/gno.vfun", // "Closure": null, -// "FileName": "tests.go", +// "FileName": "tests.gno", // "IsMethod": true, // "Name": "Modify", // "PkgPath": "gno.land/r/tests", @@ -244,7 +244,7 @@ func main() { // "@type": "/gno.nref", // "BlockNode": null, // "Location": { -// "File": "tests.go", +// "File": "tests.gno", // "Line": "20", // "Nonce": "0", // "PkgPath": "gno.land/r/tests" @@ -292,7 +292,7 @@ func main() { // "V": { // "@type": "/gno.vfun", // "Closure": null, -// "FileName": "tests.go", +// "FileName": "tests.gno", // "IsMethod": true, // "Name": "Modify", // "PkgPath": "gno.land/r/tests", @@ -300,7 +300,7 @@ func main() { // "@type": "/gno.nref", // "BlockNode": null, // "Location": { -// "File": "tests.go", +// "File": "tests.gno", // "Line": "20", // "Nonce": "0", // "PkgPath": "gno.land/r/tests" @@ -396,7 +396,7 @@ func main() { // "Escaped": true, // "ObjectID": "adc8ca1e1018f3da5f2caaf455c39e10cc1284db:3" // }, -// "FileName": "interfaces.go", +// "FileName": "interfaces.gno", // "IsMethod": false, // "Name": "AddStringer", // "PkgPath": "gno.land/r/tests", @@ -404,7 +404,7 @@ func main() { // "@type": "/gno.nref", // "BlockNode": null, // "Location": { -// "File": "interfaces.go", +// "File": "interfaces.gno", // "Line": "13", // "Nonce": "0", // "PkgPath": "gno.land/r/tests" @@ -460,7 +460,7 @@ func main() { // "Escaped": true, // "ObjectID": "adc8ca1e1018f3da5f2caaf455c39e10cc1284db:3" // }, -// "FileName": "interfaces.go", +// "FileName": "interfaces.gno", // "IsMethod": false, // "Name": "Render", // "PkgPath": "gno.land/r/tests", @@ -468,7 +468,7 @@ func main() { // "@type": "/gno.nref", // "BlockNode": null, // "Location": { -// "File": "interfaces.go", +// "File": "interfaces.gno", // "Line": "20", // "Nonce": "0", // "PkgPath": "gno.land/r/tests" @@ -524,7 +524,7 @@ func main() { // "Escaped": true, // "ObjectID": "adc8ca1e1018f3da5f2caaf455c39e10cc1284db:4" // }, -// "FileName": "tests.go", +// "FileName": "tests.gno", // "IsMethod": false, // "Name": "CurrentRealmPath", // "PkgPath": "gno.land/r/tests", @@ -532,7 +532,7 @@ func main() { // "@type": "/gno.nref", // "BlockNode": null, // "Location": { -// "File": "tests.go", +// "File": "tests.gno", // "Line": "5", // "Nonce": "0", // "PkgPath": "gno.land/r/tests" @@ -581,7 +581,7 @@ func main() { // "Escaped": true, // "ObjectID": "adc8ca1e1018f3da5f2caaf455c39e10cc1284db:4" // }, -// "FileName": "tests.go", +// "FileName": "tests.gno", // "IsMethod": false, // "Name": "ModifyTestRealmObject", // "PkgPath": "gno.land/r/tests", @@ -589,7 +589,7 @@ func main() { // "@type": "/gno.nref", // "BlockNode": null, // "Location": { -// "File": "tests.go", +// "File": "tests.gno", // "Line": "16", // "Nonce": "0", // "PkgPath": "gno.land/r/tests" @@ -628,7 +628,7 @@ func main() { // "Escaped": true, // "ObjectID": "adc8ca1e1018f3da5f2caaf455c39e10cc1284db:4" // }, -// "FileName": "tests.go", +// "FileName": "tests.gno", // "IsMethod": false, // "Name": "InitTestNodes", // "PkgPath": "gno.land/r/tests", @@ -636,7 +636,7 @@ func main() { // "@type": "/gno.nref", // "BlockNode": null, // "Location": { -// "File": "tests.go", +// "File": "tests.gno", // "Line": "36", // "Nonce": "0", // "PkgPath": "gno.land/r/tests" @@ -662,7 +662,7 @@ func main() { // "Escaped": true, // "ObjectID": "adc8ca1e1018f3da5f2caaf455c39e10cc1284db:4" // }, -// "FileName": "tests.go", +// "FileName": "tests.gno", // "IsMethod": false, // "Name": "ModTestNodes", // "PkgPath": "gno.land/r/tests", @@ -670,7 +670,7 @@ func main() { // "@type": "/gno.nref", // "BlockNode": null, // "Location": { -// "File": "tests.go", +// "File": "tests.gno", // "Line": "41", // "Nonce": "0", // "PkgPath": "gno.land/r/tests" @@ -696,7 +696,7 @@ func main() { // "Escaped": true, // "ObjectID": "adc8ca1e1018f3da5f2caaf455c39e10cc1284db:4" // }, -// "FileName": "tests.go", +// "FileName": "tests.gno", // "IsMethod": false, // "Name": "PrintTestNodes", // "PkgPath": "gno.land/r/tests", @@ -704,7 +704,7 @@ func main() { // "@type": "/gno.nref", // "BlockNode": null, // "Location": { -// "File": "tests.go", +// "File": "tests.gno", // "Line": "49", // "Nonce": "0", // "PkgPath": "gno.land/r/tests" diff --git a/tests/files2/zrealm_testutils0.go b/tests/files2/zrealm_testutils0.gno similarity index 100% rename from tests/files2/zrealm_testutils0.go rename to tests/files2/zrealm_testutils0.gno diff --git a/tests/files2/zrealm_users0.go b/tests/files2/zrealm_users0.gno similarity index 100% rename from tests/files2/zrealm_users0.go rename to tests/files2/zrealm_users0.gno diff --git a/tests/files2/zrealm_users1.go b/tests/files2/zrealm_users1.gno similarity index 100% rename from tests/files2/zrealm_users1.go rename to tests/files2/zrealm_users1.gno diff --git a/tests/files2/zrealm_users10.go b/tests/files2/zrealm_users10.gno similarity index 100% rename from tests/files2/zrealm_users10.go rename to tests/files2/zrealm_users10.gno diff --git a/tests/files2/zrealm_users2.go b/tests/files2/zrealm_users2.gno similarity index 100% rename from tests/files2/zrealm_users2.go rename to tests/files2/zrealm_users2.gno diff --git a/tests/files2/zrealm_users3.go b/tests/files2/zrealm_users3.gno similarity index 100% rename from tests/files2/zrealm_users3.go rename to tests/files2/zrealm_users3.gno diff --git a/tests/files2/zrealm_users4.go b/tests/files2/zrealm_users4.gno similarity index 100% rename from tests/files2/zrealm_users4.go rename to tests/files2/zrealm_users4.gno diff --git a/tests/files2/zrealm_users5.go b/tests/files2/zrealm_users5.gno similarity index 100% rename from tests/files2/zrealm_users5.go rename to tests/files2/zrealm_users5.gno diff --git a/tests/files2/zrealm_users6.go b/tests/files2/zrealm_users6.gno similarity index 100% rename from tests/files2/zrealm_users6.go rename to tests/files2/zrealm_users6.gno diff --git a/tests/files2/zrealm_users7.go b/tests/files2/zrealm_users7.gno similarity index 100% rename from tests/files2/zrealm_users7.go rename to tests/files2/zrealm_users7.gno diff --git a/tests/files2/zrealm_users7b.go b/tests/files2/zrealm_users7b.gno similarity index 100% rename from tests/files2/zrealm_users7b.go rename to tests/files2/zrealm_users7b.gno diff --git a/tests/files2/zrealm_users8.go b/tests/files2/zrealm_users8.gno similarity index 100% rename from tests/files2/zrealm_users8.go rename to tests/files2/zrealm_users8.gno diff --git a/tests/files2/zrealm_users9.go b/tests/files2/zrealm_users9.gno similarity index 100% rename from tests/files2/zrealm_users9.go rename to tests/files2/zrealm_users9.gno diff --git a/tests/files2/zregexp.go b/tests/files2/zregexp.gno similarity index 100% rename from tests/files2/zregexp.go rename to tests/files2/zregexp.gno diff --git a/tests/files2/zsolitaire_long.go b/tests/files2/zsolitaire_long.gno similarity index 100% rename from tests/files2/zsolitaire_long.go rename to tests/files2/zsolitaire_long.gno diff --git a/tests/package_test.go b/tests/package_test.go index 25a74333e1a..3f573846864 100644 --- a/tests/package_test.go +++ b/tests/package_test.go @@ -18,7 +18,7 @@ import ( ) func TestPackages(t *testing.T) { - // find all packages with *_test.go files. + // find all packages with *_test.gno files. rootDirs := []string{ filepath.Join("..", "examples"), filepath.Join("..", "stdlibs"), @@ -34,7 +34,7 @@ func TestPackages(t *testing.T) { if d.IsDir() { return nil } - if strings.HasSuffix(path, "_test.go") { + if strings.HasSuffix(path, "_test.gno") { dirPath := filepath.Dir(path) if _, exists := testDirs[dirPath]; exists { // already exists.