'use strict';

var pg = __dirname + '/__playground';

module.exports = {
	"File path": function (t, a) {
		var path = pg + '/package/sample.js';
		a(t(path)('./sample'), require(path));
	},
	"Dir path": function (t, a) {
		a(t(pg)('./sample'), require(pg + '/sample'));
	},
	"Resolve": function (t, a) {
		a(t(pg).resolve('./sample'), pg + '/sample.js');
	}
};

'use strict';

var join = require('path').join
  , pg = require('path').join(__dirname, '__playground');

module.exports = {
	"File path": function (t, a) {
		var path = pg + '/package/sample.js';
		a(t(path)('./sample'), require(path));
	},
	"Dir path": function (t, a) {
		a(t(pg)('./sample'), require(pg + '/sample'));
	},
	"Resolve": function (t, a) {
		a(t(pg).resolve('./sample'), join(pg, 'sample.js'));
	}
};

Fix tests for Windows