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-dms3-chunker
Commits
f076b1ef
Commit
f076b1ef
authored
Jan 21, 2020
by
Peter Rabbitson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix preexisting tests - they would never fail as written
parent
207cdc1c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
parse_test.go
parse_test.go
+5
-5
No files found.
parse_test.go
View file @
f076b1ef
...
...
@@ -15,8 +15,8 @@ func TestParseRabin(t *testing.T) {
t
.
Errorf
(
err
.
Error
())
}
_
,
err
=
parseRabinString
(
r
,
chk2
)
if
err
=
=
ErrRabinMin
{
t
.
Log
(
"it should be ErrRabinMin here."
)
if
err
!
=
ErrRabinMin
{
t
.
Fatalf
(
"Expected an 'ErrRabinMin' error, got: %#v"
,
err
)
}
}
...
...
@@ -26,11 +26,11 @@ func TestParseSize(t *testing.T) {
size1
:=
"size-0"
size2
:=
"size-32"
_
,
err
:=
FromString
(
r
,
size1
)
if
err
=
=
ErrSize
{
t
.
Log
(
"it should be ErrSize here."
)
if
err
!
=
ErrSize
{
t
.
Fatalf
(
"Expected an 'ErrSize' error, got: %#v"
,
err
)
}
_
,
err
=
FromString
(
r
,
size2
)
if
err
=
=
ErrSize
{
if
err
!
=
nil
{
t
.
Fatal
(
err
)
}
}
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