Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
matrix-org
Olm
Commits
9a8d2d15
Commit
9a8d2d15
authored
Oct 20, 2016
by
Mark Haines
Browse files
Check the message index in the tests
parent
3091dc2b
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/test_group_session.cpp
View file @
9a8d2d15
...
...
@@ -166,6 +166,7 @@ int main() {
plaintext_buf
,
size
,
&
message_index
);
assert_equals
(
plaintext_length
,
res
);
assert_equals
(
plaintext
,
plaintext_buf
,
res
);
assert_equals
(
message_index
,
uint32_t
(
0
));
}
{
...
...
@@ -213,6 +214,7 @@ int main() {
res
=
olm_group_decrypt
(
inbound_session
,
msgcopy
,
msglen
,
plaintext_buf
,
size
,
&
message_index
);
assert_equals
(
message_index
,
uint32_t
(
0
));
assert_equals
(
plaintext_length
,
res
);
assert_equals
(
plaintext
,
plaintext_buf
,
res
);
...
...
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