use super::*;
#[test]
fn create_cdict_table_logs_downsizes_for_unknown_source_with_dict() {
let (hash_log, chain_log) = create_cdict_table_logs(
27, 27, 28, true, 4096,
);
assert!(
hash_log < 27,
"hash_log {hash_log} must shrink for a tiny CDict source",
);
assert!(chain_log <= 28, "chain_log {chain_log} must not grow");
let (h2, c2) =
create_cdict_table_logs(20, 20, 21, false, 0);
assert_eq!(h2, 20, "no-dict CDict keeps the requested hash_log");
assert_eq!(c2, 21, "no-dict CDict keeps the requested chain_log");
}