Skip to content

Commit

Permalink
updates frame unit tests to use more specific checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Thorson committed May 8, 2013
1 parent 5d0d137 commit fd46083
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/utility/frame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ BOOST_AUTO_TEST_CASE( continuous_word_mask ) {

pkey_temp = frame::word_mask_circ(input+7,output+7,8,pkey_temp);
BOOST_CHECK( std::equal(output,output+16,masked) );
BOOST_CHECK( pkey_temp == frame::circshift_prepared_key(pkey,3) );
BOOST_CHECK_EQUAL( pkey_temp, frame::circshift_prepared_key(pkey,3) );
}

BOOST_AUTO_TEST_CASE( continuous_word_mask_inplace ) {
Expand Down Expand Up @@ -437,11 +437,11 @@ BOOST_AUTO_TEST_CASE( continuous_word_mask_inplace ) {

pkey_temp = frame::word_mask_circ(buffer,7,pkey);
BOOST_CHECK( std::equal(buffer,buffer+7,masked) );
BOOST_CHECK( pkey_temp == frame::circshift_prepared_key(pkey,3) );
BOOST_CHECK_EQUAL( pkey_temp, frame::circshift_prepared_key(pkey,3) );

pkey_temp = frame::word_mask_circ(buffer+7,8,pkey_temp);
BOOST_CHECK( std::equal(buffer,buffer+16,masked) );
BOOST_CHECK( pkey_temp == frame::circshift_prepared_key(pkey,3) );
BOOST_CHECK_EQUAL( pkey_temp, frame::circshift_prepared_key(pkey,3) );
}

BOOST_AUTO_TEST_CASE( continuous_word_mask2 ) {
Expand Down

0 comments on commit fd46083

Please sign in to comment.