expect(
      Path.map(
        p => [ ...p, "bar" ],
        Path.file("foo")
      )