Skip to content

Commit

Permalink
chore: add pkgaddr test
Browse files Browse the repository at this point in the history
Signed-off-by: Norman <[email protected]>
  • Loading branch information
n0izn0iz committed Dec 28, 2024
1 parent f2c60e1 commit 3a519b3
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions gnovm/cmd/gno/pkgaddr_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package main

import (
"testing"
)

func TestPkgAddrApp(t *testing.T) {
tc := []testMainCase{
{
args: []string{"pkgaddr"},
errShouldBe: "expected 1 arg, got 0",
},

{
args: []string{"pkgaddr", "gno.land/r/demo/users"},
stdoutShouldBe: "g17m4ga9t9dxn8uf06p3cahdavzfexe33ecg8v2s\n",
},
}

testMainCaseRun(t, tc)
}

0 comments on commit 3a519b3

Please sign in to comment.