Small tweak, read more

A table with 400 elements has a maximum PSL of 4.

This is only under test conditions, but WOW.
This commit is contained in:
2024-10-04 17:10:23 +10:00
parent 196b5f86f1
commit 29f5647e31

View File

@@ -575,7 +575,7 @@ int test_table_expansions_under_stress() {
int top = 300;
//insert keys and values
for (int i = 0; i < 300; i++) {
for (int i = 0; i < 400; i++) {
Toy_insertTable(&table, TOY_VALUE_TO_INTEGER(i), TOY_VALUE_TO_INTEGER(top - i));
}
@@ -584,7 +584,7 @@ int test_table_expansions_under_stress() {
//check the state
if (table == NULL ||
table->capacity != 512 ||
table->count != 300 ||
table->count != 400 ||
TOY_VALUE_IS_INTEGER(result) != true ||
TOY_VALUE_AS_INTEGER(result) != 35