Skip to content

Commit

Permalink
VZV is a full length lookup table, not a unique lookup table
Browse files Browse the repository at this point in the history
  • Loading branch information
sffc committed Oct 22, 2023
1 parent b58a5da commit 0385369
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions experimental/zerotrie/tests/locale_aux_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ fn test_combined() {
// Lookup table size:
assert_eq!(vzv.as_bytes().len(), 10223);

// // Size including pointer array:
// Size including pointer array:
assert_eq!(
vzv.as_bytes().len() + NUM_UNIQUE_BLOBS * core::mem::size_of::<usize>(),
13511
vzv.as_bytes().len() + STRINGS.len() * core::mem::size_of::<usize>(),
18639
);

let trie = ZeroTrieSimpleAscii::try_from(&litemap).unwrap();
Expand Down Expand Up @@ -148,8 +148,8 @@ fn test_aux_split() {
8590
);
assert_eq!(
total_vzv_len + NUM_UNIQUE_BLOBS * core::mem::size_of::<usize>(),
8798
total_vzv_len + STRINGS.len() * core::mem::size_of::<usize>(),
13926
);
// 2x for the lookup arrays and value arrays
assert_eq!(
Expand Down

0 comments on commit 0385369

Please sign in to comment.