Skip to content

Commit

Permalink
Make sure that output dictionary is same as input dictionary
Browse files Browse the repository at this point in the history
  • Loading branch information
sopel39 committed Oct 11, 2021
1 parent 73ad472 commit be4ce14
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,10 @@ public void testPreservesDictionaryInstance()
assertInstanceOf(secondOutputBlock, DictionaryBlock.class);

assertNotSame(firstOutputBlock, secondOutputBlock);
assertSame(((DictionaryBlock) firstOutputBlock).getDictionary(), ((DictionaryBlock) secondOutputBlock).getDictionary());
Block firstDictionary = ((DictionaryBlock) firstOutputBlock).getDictionary();
Block secondDictionary = ((DictionaryBlock) secondOutputBlock).getDictionary();
assertSame(firstDictionary, secondDictionary);
assertSame(firstDictionary, dictionary);
}

private static DictionaryBlock createDictionaryBlock(int dictionarySize, int blockSize)
Expand Down

0 comments on commit be4ce14

Please sign in to comment.