Merge #15269: document dircmp.left and right, and add tests for them.

Patch by Chris Jerdonek.