Added some more test cases to key

This commit is contained in:
Sebastian Messmer 2014-12-09 20:47:49 +01:00
parent 77ff3320c0
commit fa5058c8e3
1 changed files with 6 additions and 0 deletions

View File

@ -76,3 +76,9 @@ TEST_F(KeyTest, ToAndFromString2) {
auto key2 = Key::FromString(key.AsString());
EXPECT_EQ(key, key2);
}
// This tests that a Key object is very lightweight
// (we will often pass keys around)
TEST_F(KeyTest, KeyIsLightweightObject) {
EXPECT_EQ(Key::KEYLENGTH_BINARY, sizeof(Key));
}