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-blockservice
Commits
c8c176c8
Commit
c8c176c8
authored
Oct 08, 2014
by
Jeromy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make tests pass
parent
2a7a5b63
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
blocks_test.go
blocks_test.go
+1
-6
No files found.
blocks_test.go
View file @
c8c176c8
...
@@ -17,12 +17,7 @@ func TestBlocks(t *testing.T) {
...
@@ -17,12 +17,7 @@ func TestBlocks(t *testing.T) {
return
return
}
}
b
,
err
:=
blocks
.
NewBlock
([]
byte
(
"beep boop"
))
b
:=
blocks
.
NewBlock
([]
byte
(
"beep boop"
))
if
err
!=
nil
{
t
.
Error
(
"failed to construct block"
,
err
)
return
}
h
:=
u
.
Hash
([]
byte
(
"beep boop"
))
h
:=
u
.
Hash
([]
byte
(
"beep boop"
))
if
!
bytes
.
Equal
(
b
.
Multihash
,
h
)
{
if
!
bytes
.
Equal
(
b
.
Multihash
,
h
)
{
t
.
Error
(
"Block Multihash and data multihash not equal"
)
t
.
Error
(
"Block Multihash and data multihash not equal"
)
...
...
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