From 0936885068da65a6bc1da13becb76cfbd8d16a0f Mon Sep 17 00:00:00 2001 From: Catenocrypt Date: Tue, 27 Oct 2020 21:10:15 +0100 Subject: [PATCH] Add SS58 tests --- test_runner.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/test_runner.go b/test_runner.go index 9eadebd..ab02db9 100644 --- a/test_runner.go +++ b/test_runner.go @@ -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) { @@ -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]