lbls.parseLabel("A"+" "+LabelRepresentation.OP_DATA.POST.name()+" details of postcondition of A ");
lbls.parseLabel("B"+" "+LabelRepresentation.OP_DATA.PRE.name()+" value of precondition of B ");
Assert.assertEquals(3,lbls.labelMapConstructionOfOperations.size());
{
Label l = lbls.labelMapConstructionOfOperations.get(INITMEM);
Assert.assertEquals(INITMEM,l.getName());
Assert.assertNull(l.post.text);
Assert.assertEquals("varDecl",l.pre.text);
}
{
Label l = lbls.labelMapConstructionOfOperations.get("A");
Assert.assertEquals("A",l.getName());
Assert.assertNull(l.pre.text);
Assert.assertEquals("postA and more\ndetails of postcondition of A",l.post.text);
}
{
Label l = lbls.labelMapConstructionOfOperations.get("B");
Assert.assertEquals("B",l.getName());
Assert.assertNull(l.post.text);
Assert.assertEquals("value of precondition of B",l.pre.text);
}
}