Skip to content
This repository has been archived by the owner on May 25, 2019. It is now read-only.

Commit

Permalink
more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kpp committed Feb 10, 2016
1 parent 1608855 commit ac3a133
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/toxencryptsave/test_encryptsave.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,12 @@ TEST_F(tox_derive_key_with_salt, different_salt_produces_different_keys) {
delete[] passphrase_copy;
}

TEST_F(tox_derive_key_with_salt, key_is_null) {
EXPECT_FALSE( ::tox_derive_key_with_salt(passphrase, pplength, salt, NULL, &key_derivation_error) );
EXPECT_EQ(TOX_ERR_KEY_DERIVATION_NULL, key_derivation_error);
}


class tox_pass_encrypt : public tox_pass_key_encrypt
{
public:
Expand Down

0 comments on commit ac3a133

Please sign in to comment.