assertEqualsIgnoreWhitespace( "if (speed > speedLimit ? true : false;) pullEmOver();",
(String) rule.getConsequence() );
}
public void FIXME_testLatinChars() throws Exception {
final DrlParser parser = new DrlParser();
final Reader drl = new InputStreamReader( this.getClass().getResourceAsStream( "latin-sample.dslr" ) );
final Reader dsl = new InputStreamReader( this.getClass().getResourceAsStream( "latin.dsl" ) );
final PackageDescr pkg = parser.parse( drl,
dsl );
//MN: will get some errors due to the char encoding on my FC5 install
//others who use the right encoding may not see this, feel free to uncomment
//the following assertion.
assertFalse( parser.hasErrors() );
assertEquals( "br.com.auster.drools.sample",
pkg.getName() );
assertEquals( 1,
pkg.getRules().size() );