mirror of
https://github.com/XRPLF/rippled.git
synced 2026-04-29 15:37:57 +00:00
fixes bug in unit test
This commit is contained in:
@@ -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) );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user