var chai = require('chai');
var expect = chai.expect; // we are using the "expect" style of Chai
var Map = require('./../src/map');

describe('Find a person', function() {
  it('Given a person name, return all posts (of a map) containing her name (in any of a post fields)', function() {
    var map = new Map(["I met Or A. at Chabad house Bangkok", "We found Or A. R.I.P at Langtang valley", "Random post"]);
    var posts = map.find_a_person("Or A.")
    expect(posts).to.be.eql(["I met Or A. at Chabad house Bangkok", "We found Or A. R.I.P at Langtang valley"]);
  });
});
 Map.prototype.LookingForPerson = function(nameOfPerson) {
 return ["I met "+ nameOfPerson +" at his house"];
 };

Map.prototype.findLocation = function(nameOfPerson) {
if(this.findPerson(nameOfPerson).length>0)
    return false;
else 
    return true;
};
@@ -796,32 +796,50 @@
 urn 
-false;%0Aelse %0A   
+true;%0Areturn false; // if lenfth%3C0
  return 
 true
@@ -834,16 +834,16 @@
  return 
-true;
+false
 %0A%7D;

GREEN - fix the location