Skip to content

Commit

Permalink
chore: fixup
Browse files Browse the repository at this point in the history
Signed-off-by: Manfred Touron <[email protected]>
  • Loading branch information
moul committed May 30, 2022
1 parent fc1713d commit 6109e2b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/gno.land/r/profile/profiles.gno
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
var profiles *avl.MutTree // std.Address.String() -> *Profile

func init() {
// profiles = avl.NewMutTree()
profiles = avl.NewMutTree()
}

func Update(dict map[string]interface{}) {
Expand Down
21 changes: 18 additions & 3 deletions examples/gno.land/r/profile/profiles_test.gno
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,24 @@ import (
)

func TestRender(t *testing.T) {
got := profile.Render("")
fmt.Println(got)
//_ = profile.Render
testCases := []struct {
path string
expected string
}{
{"", "stats: 0 known profiles\n"},
}

for _, tc := range testCases {
//t.Run(tc.path, func(t *testing.T) {
got := profile.Render(tc.path)
if tc.expected != got {
t.Errorf("expected %q, got %q", tc.expected, got)
}
//})
}
}

func TestSetReadProfile(t *testing.T) {
// various data types
// avatar
// ip address
Expand Down

0 comments on commit 6109e2b

Please sign in to comment.