nim-works/nimskull

sort the standard library test directory `tests/stdlib`

Open

#537 opened on Feb 13, 2023

 (0 comments) (0 reactions) (0 assignees)Nim (39 forks)auto 404
good first issuehelp wantedtest

Repository metrics

Stars
 (346 stars)
PR merge metrics
 (PR metrics pending)

Description

stdlib test category (as in the directory /tests/stdlib) doesn't mirror the structure of the actual code under /lib.

Inconsistencies like these are just painful, the structure being mirrored is poor, but at least then there is only one mistake, the one poor structure. Right now, we've got one poor structure, another questionable structure in the test directory, and a third which is the mapping, or lack thereof, between the two.

Tests are servile, they follow the systems they verify/validate. The current organization has people guessing where could tests be, or where they should go.

The task is simple, arrange tests in the stdlib category in a directory structure that largely mirrors the lib directory. This should be done in series of small PRs.

Once this work is complete, properly organizing the standard library and its tests can take place.

Contributor guide