aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMark Haines <mjark@negativecurvature.net>2016-10-20 11:51:56 +0100
committerMark Haines <mjark@negativecurvature.net>2016-10-20 11:51:56 +0100
commit9a8d2d15d97dc17d8f33b7d45b0fefc1267b57c4 (patch)
treebb8b46fac5f33e3b51a455e58c11b725c2ce1c29 /tests
parent3091dc2b1d5eab575bfe886bf1d6f2414797373f (diff)
Check the message index in the tests
Diffstat (limited to 'tests')
-rw-r--r--tests/test_group_session.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_group_session.cpp b/tests/test_group_session.cpp
index b15875c..df46f0e 100644
--- a/tests/test_group_session.cpp
+++ b/tests/test_group_session.cpp
@@ -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);