term = "polish.Identifier ==  Nokia/6600"; assertTrue( evaluator.evaluateTerm( term, "MyClass", 12) );
	public void testCompare() {		HashMap symbols = new HashMap();		symbols.put( "test1", Boolean.TRUE );		symbols.put( "test2", Boolean.TRUE );		symbols.put( "sym-1", Boolean.TRUE );		symbols.put( "sym-2", Boolean.TRUE );		symbols.put( "var-1:defined", Boolean.TRUE );		symbols.put( "var-2:defined", Boolean.TRUE );		symbols.put( "polish.midp1", Boolean.TRUE );		symbols.put( "polish.midp2", Boolean.TRUE );		HashMap variables = new HashMap();		variables.put("polish.Screen.Width", "100");		variables.put("polish.Screen.Height", "80");		variables.put("polish.BitsPerPixel", "8");				BooleanEvaluator evaluator = new BooleanEvaluator( symbols, variables );		String term = "polish.BitsPerPixel >=  8";		assertTrue( evaluator.evaluateTerm( term, "MyClass", 12) );		term = "polish.BitsPerPixel ==  8";		assertTrue( evaluator.evaluateTerm( term, "MyClass", 12) );		term = "polish.BitsPerPixel <=  8";		assertTrue( evaluator.evaluateTerm( term, "MyClass", 12) );		term = "polish.BitsPerPixel >  8";		assertFalse( evaluator.evaluateTerm( term, "MyClass", 12) );		term = "polish.BitsPerPixel <  8";		assertFalse( evaluator.evaluateTerm( term, "MyClass", 12) );		// other way round of arguments:		term = "8 >=  polish.BitsPerPixel";		assertTrue( evaluator.evaluateTerm( term, "MyClass", 12) );		term = "8 == polish.BitsPerPixel";		assertTrue( evaluator.evaluateTerm( term, "MyClass", 12) );		term = "8 <= polish.BitsPerPixel";		assertTrue( evaluator.evaluateTerm( term, "MyClass", 12) );		term = "8 < polish.BitsPerPixel";		assertFalse( evaluator.evaluateTerm( term, "MyClass", 12) );		term = "8 > polish.BitsPerPixel";		assertFalse( evaluator.evaluateTerm( term, "MyClass", 12) );				// try higher numbers:		term = "polish.Screen.Width >=  80";		assertTrue( evaluator.evaluateTerm( term, "MyClass", 12) );		term = "polish.Screen.Width ==  80";		assertFalse( evaluator.evaluateTerm( term, "MyClass", 12) );		term = "polish.Screen.Width <=  80";		assertFalse( evaluator.evaluateTerm( term, "MyClass", 12) );		term = "polish.Screen.Width >  80";		assertTrue( evaluator.evaluateTerm( term, "MyClass", 12) );		term = "polish.Screen.Width <  80";		assertFalse( evaluator.evaluateTerm( term, "MyClass", 12) );				term = "polish.Screen.Width <  180";		assertTrue( evaluator.evaluateTerm( term, "MyClass", 12) );			}