@@ -0,0 +1,1889 @@
+/*%0A * This file is released under terms of BSD license%0A * See LICENSE file for more information%0A */%0A%0Apackage cx2x.xnode;%0A%0Aimport cx2x.xcodeml.xnode.Xattr;%0Aimport org.junit.Test;%0A%0Aimport static org.junit.Assert.assertEquals;%0A%0A/**%0A * @author clementval%0A */%0Apublic class XattrTest %7B%0A%0A  @Test%0A  public void stringToEnumTest()%7B%0A    assertEnum(Xattr.COMPILER_INFO,%22compiler-info%22);%0A    assertEnum(Xattr.CONSTRUCT_NAME,%22construct_name%22);%0A    assertEnum(Xattr.FILE,%22file%22);%0A    assertEnum(Xattr.INTENT,%22intent%22);%0A    assertEnum(Xattr.IS_ASSUMED_SHAPE,%22is_assumed_shape%22);%0A    assertEnum(Xattr.IS_ALLOCATABLE,%22is_allocatable%22);%0A    assertEnum(Xattr.IS_EXTERNAL,%22is_external%22);%0A    assertEnum(Xattr.IS_INTERNAL,%22is_internal%22);%0A    assertEnum(Xattr.IS_INTRINSIC,%22is_intrinsic%22);%0A    assertEnum(Xattr.IS_OPTIONAL,%22is_optional%22);%0A    assertEnum(Xattr.IS_PARAMETER,%22is_parameter%22);%0A    assertEnum(Xattr.IS_POINTER,%22is_pointer%22);%0A    assertEnum(Xattr.IS_PRIVATE,%22is_private%22);%0A    assertEnum(Xattr.IS_PROGRAM,%22is_program%22);%0A    assertEnum(Xattr.IS_PUBLIC,%22is_public%22);%0A    assertEnum(Xattr.IS_RECURSIVE,%22is_recursive%22);%0A    assertEnum(Xattr.IS_SAVE,%22is_save%22);%0A    assertEnum(Xattr.IS_TARGET,%22is_target%22);%0A    assertEnum(Xattr.KIND,%22kind%22);%0A    assertEnum(Xattr.LANGUAGE,%22language%22);%0A    assertEnum(Xattr.LINENO,%22lineno%22);%0A    assertEnum(Xattr.NAME,%22name%22);%0A    assertEnum(Xattr.REPEAT_COUNT,%22repeat_count%22);%0A    assertEnum(Xattr.REF,%22ref%22);%0A    assertEnum(Xattr.RESULT_NAME,%22result_name%22);%0A    assertEnum(Xattr.RETURN_TYPE,%22return_type%22);%0A    assertEnum(Xattr.SCLASS,%22sclass%22);%0A    assertEnum(Xattr.SCOPE,%22scope%22);%0A    assertEnum(Xattr.SOURCE,%22source%22);%0A    assertEnum(Xattr.TIME,%22time%22);%0A    assertEnum(Xattr.TYPE,%22type%22);%0A    assertEnum(Xattr.VERSION,%22version%22);%0A  %7D%0A%0A  private void assertEnum(Xattr opcode, String value)%7B%0A    Xattr ret = Xattr.fromString(value);%0A    assertEquals(opcode, ret);%0A  %7D%0A%7D%0A

Add junit test