The selftests at the end of many source files are only rarely read or modified, but they contribute to the size/complexity of the files and make moving within the rest of the code more difficult.
Would anyone be opposed to moving any of them into new files of their own? E.g., those in tree.c to tree-tests.c, etc.? I would be happy to do this for a subset of these, with the goal of eventually moving all of them and adding new ones accordingly. Martin