I found couple of problems with the basename spec and I am attaching the
modified one for your review. I left the “w+” as it is, with your new
changes, this should work. Also couple of places the checks for ‘bar’
against ‘baz’, I correct the spelling and one last thing, couple of
places the assertion were read ‘shoould’ instead of ‘should’. I fixed
them as well.