'use strict';

var test = require('tape');
var isArguments = require('../isArguments');

test('is.arguments', function (t) {
	t.notOk(isArguments([]), 'array is not arguments');
	(function () { t.ok(isArguments(arguments), 'arguments is arguments'); }());
	(function () { t.notOk(isArguments(Array.prototype.slice.call(arguments)), 'sliced arguments is not arguments'); }());
	var fakeOldArguments = {
		callee: function () {},
		length: 3
	};
	t.ok(isArguments(fakeOldArguments), 'old-style arguments is arguments');
	t.end();
});

'use strict';

var test = require('tape');
var isArguments = require('../isArguments');

test('is.arguments', function (t) {
	t.notOk(isArguments([]), 'array is not arguments', { operator: isArguments });
	(function () { t.ok(isArguments(arguments), 'arguments is arguments', { operator: isArguments }); }());
	(function () {
		var args = Array.prototype.slice.call(arguments);
		t.notOk(isArguments(args), 'sliced arguments is not arguments', { operator: isArguments });
	}());
	var fakeOldArguments = {
		callee: function () {},
		length: 3
	};
	t.ok(isArguments(fakeOldArguments), 'old-style arguments is arguments', { operator: isArguments });
	t.end();
});

add "extra" info