Skip to content

Commit

Permalink
Add SS58 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Catenocrypt committed Oct 27, 2020
1 parent dd24152 commit 0936885
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test_runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ type TestcaseDecode struct {
err error
}

func errorString(err error) string {
if err != nil {
return err.Error()
}
return "(no error)"
}

func RunTestsEncode(t *testing.T, coinType uint32, tests []TestcaseEncode) {
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
Expand All @@ -33,13 +40,6 @@ func RunTestsEncode(t *testing.T, coinType uint32, tests []TestcaseEncode) {
}
}

func errorString(err error) string {
if err != nil {
return err.Error()
}
return "(no error)"
}

func RunTestEncode(coinType uint32, tt TestcaseEncode) error {
testfun, _ := toBytesMap[coinType]

Expand Down

0 comments on commit 0936885

Please sign in to comment.