This used to return "/foo" for "../foo" when it should return the enpty string (i.e., error removing all relative components).
(was broken by e4ee6548afd01040046ee3780d0fbb121d141251)
Split unit tests into separate files under src/unittest/ Give better unittest diagnostics Clean up some code