Skip to content

Commit

Permalink
Add namehash decimal test
Browse files Browse the repository at this point in the history
  • Loading branch information
sudoryan committed Aug 4, 2021
1 parent 8843bcd commit 1be8aa9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions cli_e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,15 @@ func TestCliUnsNamehash(t *testing.T) {
assertCommandResult(t, cmd, expectedOutput)
}

func TestCliUnsNamehashDecimal(t *testing.T) {
t.Parallel()
cmd := testcli.Command(commandPath(), "namehash", "-d", "brad.crypto", "--decimal")
cmd.Run()
expectedOutput := `53115498937382692782103703677178119840631903773202805882273058578308100329417
`
assertCommandResult(t, cmd, expectedOutput)
}

func TestCliCnsResolve(t *testing.T) {
t.Parallel()
cmd := testcli.Command(commandPath(), "resolve", "-d", "brad.crypto")
Expand Down

0 comments on commit 1be8aa9

Please sign in to comment.