Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Kirill Smelkov
wendelin.core
Commits
ef0de564
Commit
ef0de564
authored
Apr 13, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
9b929572
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
wcfs/zblk_test.go
wcfs/zblk_test.go
+11
-1
No files found.
wcfs/zblk_test.go
View file @
ef0de564
...
...
@@ -38,6 +38,7 @@ import (
const
K
=
1024
// TestZBlk verifies that ZBlk* and ZBigFile saved by Python can be read correctly by Go.
// TODO also test with data saved by Python3.
func
TestZBlk
(
t
*
testing
.
T
)
{
X
:=
exc
.
Raiseif
assert
:=
require
.
New
(
t
)
...
...
@@ -114,7 +115,16 @@ func TestZBlk(t *testing.T) {
assert
.
Equal
(
size
,
int64
(
zf_size
),
"ZBigFile size wrong"
)
// XXX check zf.LoadBlk()
// LoadBlk
z0Data
,
_
,
_
,
_
,
err
=
zf
.
LoadBlk
(
ctx
,
1
);
X
(
err
)
assert
.
Equal
(
len
(
z0Data
),
int
(
zf
.
blksize
))
z0Data
=
bytes
.
TrimRight
(
z0Data
,
"
\x00
"
)
assert
.
Equal
(
z0Data
,
z0DataOK
)
z1Data
,
_
,
_
,
_
,
err
=
zf
.
LoadBlk
(
ctx
,
3
);
X
(
err
)
assert
.
Equal
(
len
(
z1Data
),
int
(
zf
.
blksize
))
z1Data
=
bytes
.
TrimRight
(
z1Data
,
"
\x00
"
)
assert
.
Equal
(
z1Data
,
z1DataOK
)
}
// TODO verify PyGetState vs PySetState
...
...
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