Skip to content

Commit

Permalink
Update GenericKeyStateFormatTest source data to include new random du…
Browse files Browse the repository at this point in the history
…ration that include nanos
  • Loading branch information
burqen committed Sep 17, 2018
1 parent 873263c commit 5113d1c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -216,16 +216,16 @@ private void initializeFromValue( CompositeGenericKey key, Value value )
private void verifyData( PageCursor c )
{
GenericLayout layout = getLayout();
CompositeGenericKey into = layout.newKey();
CompositeGenericKey readCompositeKey = layout.newKey();
CompositeGenericKey comparison = layout.newKey();
for ( Value value : values )
{
int keySize = c.getInt();
layout.readKey( c, into, keySize );
for ( Value readValue : into.asValues() )
layout.readKey( c, readCompositeKey, keySize );
for ( Value readValue : readCompositeKey.asValues() )
{
initializeFromValue( comparison, value );
assertEquals( 0, layout.compare( into, comparison ) );
assertEquals( 0, layout.compare( readCompositeKey, comparison ), "expected " + comparison + ", but was " + readCompositeKey );
if ( readValue != Values.NO_VALUE )
{
assertEquals( value, readValue, "expected read value to be " + value + ", but was " + readValue );
Expand Down
Binary file not shown.

0 comments on commit 5113d1c

Please sign in to comment.