Program: 51578
Project: 51578
Buggy source:
@Test public void testEvaluatingBoolean() throws ParseError, ContentError {
  Parser p=new Parser();
  String src="String_Node_Str";
  ParseTree pt=p.parseCondition(src);
  HashMap<String,Double> valHM=new HashMap<String,Double>();
  valHM.put("String_Node_Str",4.);
  valHM.put("String_Node_Str",5.);
  boolean res=pt.makeBooleanEvaluator().evalB(valHM);
  assertFalse(src,res);
  valHM.put("String_Node_Str",1.);
  valHM.put("String_Node_Str",50.);
  res=pt.makeBooleanEvaluator().evalB(valHM);
  assertTrue(src,res);
  pt=p.parseCondition("String_Node_Str");
  assertFalse(src,pt.makeBooleanEvaluator().evalB(valHM));
  pt=p.parseCondition("String_Node_Str");
  assertTrue(src,pt.makeBooleanEvaluator().evalB(valHM));
  pt=p.parseCondition("String_Node_Str");
  assertTrue(src,pt.makeBooleanEvaluator().evalB(valHM));
  pt=p.parseCondition("String_Node_Str");
  assertFalse(src,pt.makeBooleanEvaluator().evalB(valHM));
  pt=p.parseCondition("String_Node_Str" + AndNode.SYMBOL + "String_Node_Str");
  assertTrue(src,pt.makeBooleanEvaluator().evalB(valHM));
  pt=p.parseCondition("String_Node_Str" + AndNode.SYMBOL + "String_Node_Str");
  assertFalse(src,pt.makeBooleanEvaluator().evalB(valHM));
  ParseTree ptOr=p.parseCondition("String_Node_Str" + OrNode.SYMBOL + "String_Node_Str");
  assertTrue(src,ptOr.makeBooleanEvaluator().evalB(valHM));
  ptOr=p.parseCondition("String_Node_Str" + OrNode.SYMBOL + "String_Node_Str");
  assertTrue(src,ptOr.makeBooleanEvaluator().evalB(valHM));
  ptOr=p.parseCondition("String_Node_Str" + OrNode.SYMBOL + "String_Node_Str");
  assertFalse(src,ptOr.makeBooleanEvaluator().evalB(valHM));
  src="String_Node_Str";
  pt=p.parseCondition(src);
  valHM=new HashMap<String,Double>();
  valHM.put("String_Node_Str",-0.2);
  res=pt.makeBooleanEvaluator().evalB(valHM);
  assertFalse(src,res);
}

Fixed version (ground truth):
@Test public void testEvaluatingBoolean() throws ParseError, ContentError {
  Parser p=new Parser();
  String src="String_Node_Str";
  ParseTree pt=p.parseCondition(src);
  HashMap<String,Double> valHM=new HashMap<String,Double>();
  valHM.put("String_Node_Str",4.);
  valHM.put("String_Node_Str",5.);
  boolean res=pt.makeBooleanEvaluator().evalB(valHM);
  assertFalse(src,res);
  valHM.put("String_Node_Str",1.);
  valHM.put("String_Node_Str",50.);
  res=pt.makeBooleanEvaluator().evalB(valHM);
  assertTrue(src,res);
  pt=p.parseCondition("String_Node_Str");
  assertFalse(src,pt.makeBooleanEvaluator().evalB(valHM));
  pt=p.parseCondition("String_Node_Str");
  assertTrue(src,pt.makeBooleanEvaluator().evalB(valHM));
  pt=p.parseCondition("String_Node_Str");
  assertTrue(src,pt.makeBooleanEvaluator().evalB(valHM));
  pt=p.parseCondition("String_Node_Str");
  assertFalse(src,pt.makeBooleanEvaluator().evalB(valHM));
  pt=p.parseCondition("String_Node_Str" + AndNode.SYMBOL + "String_Node_Str");
  assertTrue(src,pt.makeBooleanEvaluator().evalB(valHM));
  pt=p.parseCondition("String_Node_Str" + AndNode.SYMBOL + "String_Node_Str");
  assertFalse(src,pt.makeBooleanEvaluator().evalB(valHM));
  ParseTree ptOr=p.parseCondition("String_Node_Str" + OrNode.SYMBOL + "String_Node_Str");
  assertTrue(src,ptOr.makeBooleanEvaluator().evalB(valHM));
  ptOr=p.parseCondition("String_Node_Str" + OrNode.SYMBOL + "String_Node_Str");
  assertTrue(src,ptOr.makeBooleanEvaluator().evalB(valHM));
  ptOr=p.parseCondition("String_Node_Str" + OrNode.SYMBOL + "String_Node_Str");
  assertFalse(src,ptOr.makeBooleanEvaluator().evalB(valHM));
  src="String_Node_Str";
  pt=p.parseCondition(src);
  valHM=new HashMap<String,Double>();
  valHM.put("String_Node_Str",-0.2);
  res=pt.makeBooleanEvaluator().evalB(valHM);
  assertFalse(src,res);
  src="String_Node_Str";
  pt=p.parseCondition(src);
  valHM=new HashMap<String,Double>();
  valHM.put("String_Node_Str",-0.2);
  res=pt.makeBooleanEvaluator().evalB(valHM);
  assertFalse(src,res);
}