import junit.framework.TestCase;
public class TestConstConversions extends TestCase {
public void test1() throws CompilerException {
assertEquals(StdJavaExpressions.getBooleanValue(new ConstObj(Boolean.TRUE)),Boolean.TRUE) ;
assertEquals(StdJavaExpressions.getBooleanValue(new ConstObj(Byte.valueOf((byte)5))),Boolean.TRUE) ;
assertEquals(StdJavaExpressions.getBooleanValue(new ConstObj(Short.valueOf((short)5))),Boolean.TRUE) ;
assertEquals(StdJavaExpressions.getBooleanValue(new ConstObj(Character.valueOf((char)5))),Boolean.TRUE) ;
assertEquals(StdJavaExpressions.getBooleanValue(new ConstObj(Integer.valueOf(5))),Boolean.TRUE) ;
assertEquals(StdJavaExpressions.getBooleanValue(new ConstObj(Long.valueOf(5))),Boolean.TRUE) ;
assertEquals(StdJavaExpressions.getBooleanValue(new ConstObj(Float.valueOf(5))),Boolean.TRUE) ;
assertEquals(StdJavaExpressions.getBooleanValue(new ConstObj(Double.valueOf(5))),Boolean.TRUE) ;
assertEquals(StdJavaExpressions.getBooleanValue(new ConstObj(Boolean.FALSE)),Boolean.FALSE) ;
assertEquals(StdJavaExpressions.getBooleanValue(new ConstObj(Byte.valueOf((byte)0))),Boolean.FALSE) ;
assertEquals(StdJavaExpressions.getBooleanValue(new ConstObj(Short.valueOf((short)0))),Boolean.FALSE) ;
assertEquals(StdJavaExpressions.getBooleanValue(new ConstObj(Character.valueOf((char)0))),Boolean.FALSE) ;
assertEquals(StdJavaExpressions.getBooleanValue(new ConstObj(Integer.valueOf(0))),Boolean.FALSE) ;
assertEquals(StdJavaExpressions.getBooleanValue(new ConstObj(Long.valueOf(0))),Boolean.FALSE) ;
assertEquals(StdJavaExpressions.getBooleanValue(new ConstObj(Float.valueOf(0))),Boolean.FALSE) ;
assertEquals(StdJavaExpressions.getBooleanValue(new ConstObj(Double.valueOf(0))),Boolean.FALSE) ;
}