Skip to content

Commit

Permalink
test: add test file
Browse files Browse the repository at this point in the history
  • Loading branch information
MikaelVallenet committed Sep 30, 2024
1 parent 69ac182 commit 18f3df3
Showing 1 changed file with 12 additions and 19 deletions.
31 changes: 12 additions & 19 deletions gnovm/tests/files/a1.gno
Original file line number Diff line number Diff line change
@@ -1,26 +1,19 @@
package main

import "fmt"

type Role struct {
Name string
Permissions []string
Users []string
Next *Role
Prev *Role
}

func main() {
userRole := &Role{
Name: "user",
Permissions: []string{},
Users: []string{},
Next: nil,
Prev: nil,
a := [6]int{1, 2, 3, 4, 5, 6}
println(a[1]) // 2
for i, v := range a {
println(v)
if i == 3 {
break
}
}

fmt.Printf("%v", userRole)
}

// Output:
// &{user [] [] <nil> <nil>}
// 2
// 1
// 2
// 3
// 4

0 comments on commit 18f3df3

Please sign in to comment.