@@ -425,17 +425,17 @@ def check_hist_encode(word_size,
425425ENCODE_ARG_LIST = (
426426 # word size digits expected_compressed_length, fill_start%, fill_count%
427427 # best case when all counters are zero
428- (8 , 3 , 48 , 0 , 0 ), # V1=52 385 = size when compressing entire counts array
429- (8 , 2 , 48 , 0 , 0 ), # 126
428+ (8 , 3 , 52 , 0 , 0 ), # V1=52 385 = size when compressing entire counts array
429+ (8 , 2 , 52 , 0 , 0 ), # 126
430430 # typical case when all counters are aggregated in a small contiguous area
431- (8 , 3 , 15560 , 30 , 20 ), # V1=16452
432- (8 , 2 , 1688 , 30 , 20 ), # V1=2096
431+ (8 , 3 , 15564 , 30 , 20 ), # V1=16452
432+ (8 , 2 , 1692 , 30 , 20 ), # V1=2096
433433 # worst case when all counters are different
434434 (8 , 3 , 76892 , 0 , 100 ), # V1=80680
435- (8 , 2 , 9340 , 0 , 100 ), # V1=10744
435+ (8 , 2 , 9344 , 0 , 100 ), # V1=10744
436436 # worst case 32-bit and 16-bit counters
437437 (2 , 3 , 76892 , 0 , 100 ), # V1=68936
438- (2 , 2 , 9340 , 0 , 100 ), # V1=9144
438+ (2 , 2 , 9344 , 0 , 100 ), # V1=9144
439439)
440440
441441@pytest .mark .codec
@@ -618,6 +618,8 @@ def test_jHiccup_v2_log():
618618 accumulated_histogram .add (decoded_histogram )
619619 # These logs use 8 byte counters
620620 assert decoded_histogram .get_word_size () == 8
621+ # These logs use the default 1.0 conversion ratio
622+ assert decoded_histogram .get_int_to_double_conversion_ratio () == 1.0
621623 for statement in target_numbers :
622624 assert eval (statement ) == target_numbers [statement ]
623625
0 commit comments