mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 14:54:07 +10:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user