void () { assertTrue(PyEvaluator.evaluateAsBoolean(parseExpression("True"))); assertFalse(PyEvaluator.evaluateAsBoolean(parseExpression("False"))); assertTrue(PyEvaluator.evaluateAsBoolean(parseExpression("'a'"))); assertFalse(PyEvaluator.evaluateAsBoolean(parseExpression("''"))); assertTrue(PyEvaluator.evaluateAsBoolean(parseExpression("1"))); assertFalse(PyEvaluator.evaluateAsBoolean(parseExpression("0"))); assertTrue(PyEvaluator.evaluateAsBoolean(parseExpression("{1: 0}"))); assertFalse(PyEvaluator.evaluateAsBoolean(parseExpression("{}"))); assertTrue(PyEvaluator.evaluateAsBoolean(parseExpression("[1]"))); assertFalse(PyEvaluator.evaluateAsBoolean(parseExpression("[]"))); }