Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Erik Jansson
LabComm
Commits
69ddc9d9
Commit
69ddc9d9
authored
Apr 17, 2014
by
Tommy Olofsson
Browse files
Added an assert to the copy tests.
parent
b8888f6a
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/c/test/test_labcomm_copy.c
View file @
69ddc9d9
...
...
@@ -106,15 +106,20 @@ int main(int argc, char **argv)
labcomm_decoder_decode_one
(
decoder
);
assert
(
cache_s1
.
i
==
s1
.
i
);
puts
(
"S1 copied ok"
);
assert
(
cache_b
==
b
);
puts
(
"B copied ok"
);
assert
(
cache_I
.
n_0
==
I
.
n_0
);
assert
(
cache_I
.
a
[
0
]
==
I
.
a
[
0
]);
assert
(
cache_I
.
a
[
1
]
==
I
.
a
[
1
]);
assert
(
cache_I
.
a
[
2
]
==
I
.
a
[
2
]);
free
(
I
.
a
);
puts
(
"I copied ok"
);
assert
(
cache_p
.
n_0
==
p
.
n_0
);
for
(
int
i
=
0
;
i
<
p
.
n_0
;
i
++
)
assert
(
cache_p
.
a
[
i
].
i
==
p
.
a
[
i
].
i
);
free
(
p
.
a
);
puts
(
"P copied ok"
);
labcomm_decoder_free
(
decoder
);
close
(
fd
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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