Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-cidutil
Commits
e9d41995
Commit
e9d41995
authored
Aug 28, 2017
by
Steven Allen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gx: update multibase
And fix test case.
parent
ffec3ee9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
cid-fmt/main_test.go
cid-fmt/main_test.go
+2
-3
No files found.
cid-fmt/main_test.go
View file @
e9d41995
...
...
@@ -38,8 +38,7 @@ func TestFmt(t *testing.T) {
{
"cidv1"
,
-
1
,
"%M"
,
"QmYFbmndVP7QqAVWyKhpmMuQHMaD88pkK57RgYVimmoh5H"
},
{
"cidv1"
,
-
1
,
"%d"
,
"zAux4gVVsLRMXtsZ9fd3tFEZN4jGYB6kP37fgoZNTc11H"
},
{
"cidv1"
,
-
1
,
"%D"
,
"Aux4gVVsLRMXtsZ9fd3tFEZN4jGYB6kP37fgoZNTc11H"
},
{
"cidv1"
,
'B'
,
"%s"
,
"bAFYBEIETJGSRL3EQPQPCABV3G6IUBYTSIFVQ24XRRHD3JUETSKLTGQ7DJA"
},
// note: ^ "bAFYB.." should probably be "BAFYB.." (upper case b)
{
"cidv1"
,
'B'
,
"%s"
,
"BAFYBEIETJGSRL3EQPQPCABV3G6IUBYTSIFVQ24XRRHD3JUETSKLTGQ7DJA"
},
{
"cidv1"
,
'B'
,
"%S"
,
"AFYBEIETJGSRL3EQPQPCABV3G6IUBYTSIFVQ24XRRHD3JUETSKLTGQ7DJA"
},
{
"cidv1"
,
'B'
,
"%B%S"
,
"BAFYBEIETJGSRL3EQPQPCABV3G6IUBYTSIFVQ24XRRHD3JUETSKLTGQ7DJA"
},
}
...
...
@@ -83,7 +82,7 @@ func TestCidConv(t *testing.T) {
if
err
!=
nil
{
t
.
Fatal
(
err
)
}
if
cid
.
String
()
!=
cidv1
{
if
cid
.
String
()
!=
cidv1
{
t
.
Fatal
(
"conversion failure"
)
}
cid
,
err
=
toCidV0
(
cid
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment