Michael Albinus writes: Hi Michael, > I haven't tested thoroughly, but your tests look OK. > >> + (should (equal (file-name-directory "https://foo.org") >> + "https://foo.org/")))) > > This is OK, but I would add also > > (should (equal (file-name-directory "https://foo.org/") > "https://foo.org/")))) > > Maybe you could add also negative tests, for example for > (file-name-directory "not-a-uri://foo.org") Thanks for your feedback. Here's a revised version.