Skip to content

Commit

Permalink
chore: refactor tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hthieu1110 committed Sep 25, 2024
1 parent ea64cde commit f598f1f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/gno.land/r/demo/users/gno.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ require (
gno.land/p/demo/avl v0.0.0-latest
gno.land/p/demo/avlhelpers v0.0.0-latest
gno.land/p/demo/users v0.0.0-latest
gno.land/p/demo/uassert v0.0.0-latest
)
14 changes: 14 additions & 0 deletions examples/gno.land/r/demo/users/users_test.gno
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package users

import (
"testing"
"strconv"

"gno.land/p/demo/uassert"
)

func TestPreRegisteredTest1(t *testing.T) {
names := ListUsersByPrefix("test1", 1)
uassert.Equal(t, len(names), 1)
uassert.Equal(t, names[0], "test1")
}

0 comments on commit f598f1f

Please sign in to comment.