 strung   = require 'strung'
 slash    = corepath.sep
 buildPath= require '../../lib'
+
+dirName = process.cwd().split(slash).pop()
+backToHere = '../' + dirName
+backToPackage = '../' + dirName + '/package.json'
+
+isWindows = process.platform is 'win32'
+windows = (value) -> if isWindows then value else not value
+
 
 # lean path ops:
 #  1. avoid as much work as possible

    assert.equal text, testContent

  describe 'async write', -> it 'should write file \'path.async.write.txt\'', (done) ->
    testFile = 'test/output/path.async.write.txt'
    testContent = 'output by path.write test'
    path = buildPath testFile
    path.write testContent, {}, (error) ->
      if error? then return done error
      fs.readFile testFile, encoding:'utf8', (error, text) ->
        if error? then return done error
        fs.unlink testFile, (error) ->
          if error? then return done error
          assert.equal text, testContent
          done()



      '/path/more/':true
      '/./path':true
      '/./path/':true
      '\\': windows true
      'C:': windows true
      'C:\\': windows true
      'C:\\some\\path': windows true
    }
      do (path,result) ->
        it 'with [' + path + '] should return [' + result + ']', ->
          assert.equal buildPath(path).isAbsolute, result


  # path.isCanonical
  describe 'isCanonical', ->
