fixes bug in unit test

This commit is contained in:
Peter Thorson
2013-04-30 17:14:22 -05:00
parent 54a9ed6e24
commit 568743e587

View File

@@ -392,6 +392,7 @@ BOOST_AUTO_TEST_CASE( continuous_word_mask ) {
size_t pkey,pkey_temp;
pkey = frame::prepare_masking_key(key);
std::fill_n(input,16,0x00);
std::fill_n(output,16,0x00);
frame::word_mask_circ(input,output,15,pkey);
BOOST_CHECK( std::equal(output,output+16,masked) );
@@ -462,4 +463,4 @@ BOOST_AUTO_TEST_CASE( continuous_word_mask2 ) {
pkey = frame::prepare_masking_key(key);
frame::word_mask_circ(buffer,12,pkey);
BOOST_CHECK( std::equal(buffer,buffer+12,unmasked) );
}
}