ARROW-8506: [C++] Add tests to verify the encoded stream of RLE with bit_width > 8
ARROW-8506: [C++] Add tests to verify the encoded stream of RLE with bit_width > 8

This PR adds test cases to verify whether the encoded values are stored in a little-endian format when RLE with bit_width > 8 is applied. Parquet encoder/decoder handles the value as little-endian as follows:
https://github.com/apache/parquet-mr/blob/master/parquet-column/src/main/java/org/apache/parquet/column/values/rle/RunLengthBitPackingHybridEncoder.java#L244
https://github.com/apache/parquet-mr/blob/master/parquet-column/src/main/java/org/apache/parquet/column/values/rle/RunLengthBitPackingHybridDecoder.java#L87

There is no test of this type in the current test cases of Rle.

Closes #6976 from kiszk/ARROW-8506

Authored-by: Kazuaki Ishizaki <409019bab0e07036ad6abfa289bcfe098eb16317@jp.ibm.com>
Signed-off-by: Antoine Pitrou <9359a4d812173b65a3a0094cd86363e79731a3c2@python.org>

wesm/arrow,laurentgo/arrow,xhochy/arrow,kou/arrow,laurentgo/arrow,laurentgo/arrow,laurentgo/arrow,icexelloss/arrow,apache/arrow,xhochy/arrow,cpcloud/arrow,laurentgo/arrow,apache/arrow,wesm/arrow,wesm/arrow,laurentgo/arrow,cpcloud/arrow,kou/arrow,wesm/arrow,icexelloss/arrow,kou/arrow,xhochy/arrow,kou/arrow,xhochy/arrow,wesm/arrow,laurentgo/arrow,laurentgo/arrow,icexelloss/arrow,icexelloss/arrow,wesm/arrow,xhochy/arrow,icexelloss/arrow,cpcloud/arrow,icexelloss/arrow,icexelloss/arrow,icexelloss/arrow,cpcloud/arrow,cpcloud/arrow,kou/arrow,apache/arrow,xhochy/arrow,kou/arrow,kou/arrow,wesm/arrow,wesm/arrow,cpcloud/arrow,xhochy/arrow,apache/arrow,apache/arrow,apache/arrow,cpcloud/arrow,wesm/arrow,wesm/arrow,laurentgo/arrow,kou/arrow,cpcloud/arrow,kou/arrow,cpcloud/arrow,xhochy/arrow,icexelloss/arrow,laurentgo/arrow,xhochy/arrow,apache/arrow,xhochy/arrow,icexelloss/arrow,apache/arrow,cpcloud/arrow,wesm/arrow,kou/arrow,icexelloss/arrow,wesm/arrow,apache/arrow,kou/arrow,xhochy/arrow,xhochy/arrow,laurentgo/arrow,cpcloud/arrow,icexelloss/arrow,apache/arrow,laurentgo/arrow,xhochy/arrow,wesm/arrow,kou/arrow,apache/arrow,cpcloud/arrow,wesm/arrow,icexelloss/arrow,cpcloud/arrow,xhochy/arrow,kou/arrow,apache/arrow,cpcloud/arrow,laurentgo/arrow,apache/arrow,kou/arrow,laurentgo/arrow,xhochy/arrow,apache/arrow,laurentgo/arrow,icexelloss/arrow