randomouscrap98 / contentapi

A generic content system to make some kinda standard websites
GNU General Public License v3.0
9 stars 2 forks source link

Test new dbwriter hash collision and generation functions #70

Closed randomouscrap98 closed 2 years ago

randomouscrap98 commented 2 years ago

First, write tests for the hash collision based on existing data. Then, set the configuration for hashes to allow for a huge amount of redos, then set the character length to 1. Generate 26 hashes, ensure they can all be generated (must insert each one), then assert that the 27th generated will fail due to retries.

randomouscrap98 commented 2 years ago

Complete in 2345b25db7dcd29f5766ff6bc94821b71f7a3707