var assert = require('assert');
var objfilter = require('../');

var o1 = {
  a: 1,
  b: -1,
  c: 0,
  d: 42
};

var ctx = {
  foo: 'bar'
};

assert.deepEqual({ a: 1, d: 42 }, objfilter(o1, function (n, k, o) {
  assert.equal(o, o1);
  assert.notEqual(Object.keys(o1).indexOf(k), -1);
  return n > 0;
}));

assert.deepEqual(o1, objfilter(o1, function (n) {
  assert.equal(this, ctx);
  return true;
}, ctx));

assert.throws(function () {
  objfilter(o1, null);
});

@@ -239,48 +239,37 @@
 sert
-.notEqual(Object.keys(o1).indexOf(k), -1
+(typeof o1%5Bk%5D !== 'undefined'
 );%0A 

Simplify test assertion