@Test
public void testNot() throws Exception {
KnowledgeBuilderImpl builder = new KnowledgeBuilderImpl();
// Make sure we can't accessa variable bound inside the not node
RuleImpl rule = createRule( new NotDescr(),
builder,
"update(stilton);" );
assertTrue( builder.hasErrors() );
builder = new KnowledgeBuilderImpl();
rule = createRule( new NotDescr(),
builder,
"" );
assertEquals( 0,
builder.getErrors().getErrors().length );