From 29f5647e319a3e806eda7518e9684f13c3e54ac2 Mon Sep 17 00:00:00 2001 From: Kayne Ruse Date: Fri, 4 Oct 2024 17:10:23 +1000 Subject: [PATCH] Small tweak, read more A table with 400 elements has a maximum PSL of 4. This is only under test conditions, but WOW. --- tests/cases/test_table.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/cases/test_table.c b/tests/cases/test_table.c index 5b14569..d90a3da 100644 --- a/tests/cases/test_table.c +++ b/tests/cases/test_table.c @@ -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