/**
 * Copyright (c) 2012 Andreas Madsen
 * MIT License
 */

(function () {
  "use strict";

  var path = require('path');
  var fs = require('fs');

  // get test folders
  exports.root = path.join(path.dirname(module.filename), '../');
  exports.test = path.join(exports.root, 'test');
  exports.fixture = path.join(exports.test, 'fixture');
  exports.simple = path.join(exports.test, 'simple');
  exports.temp = path.join(exports.test, 'temp');

  exports.module = path.join(exports.root, 'lib/module.js');

  // create temp file if missing
  var exists = fs.existsSync || path.existsSync;
  if (!exists(exports.temp)) {
    fs.mkdirSync(exports.temp, "755");
  }

})();

@@ -137,24 +137,73 @@
 quire('fs');
+%0A  var exists = fs.existsSync %7C%7C path.existsSync;
 %0A%0A  // get t
@@ -282,28 +282,27 @@
 ./');%0A  
-exports.
+var 
 test
+Dir
  = path.
@@ -333,312 +333,355 @@
 ');%0A
+%0A
   
-exports.fixture = path.join(exports.test, 'fixture');%0A  exports.simple = path.join(exports.test, 'simple');%0A  exports.temp = path.join(exports.test, 'temp');%0A%0A  exports.module = path.join(exports.root, 'lib/module.js');%0A%0A  // create temp file if missing%0A  var exists = fs.existsSync %7C%7C path.existsSync;
+// Filepath resolvers%0A  exports.temp = function (filename) %7B%0A    return path.join(testDir, 'temp', filename);%0A  %7D;%0A  exports.fixture = function (filename) %7B%0A    return path.join(testDir, 'fixture', filename);%0A  %7D;%0A  exports.simple = function (filename) %7B%0A    return path.join(testDir, 'simple', filename);%0A  %7D;%0A%0A  // create temp file if missing
 %0A  i
@@ -699,20 +699,25 @@
 exports.
-temp
+fixture()
 )) %7B%0A   
@@ -756,15 +756,14 @@
 %22);%0A  %7D%0A
-%0A
 %7D)();%0A

add common module there contain testcase functions