@Test(timeout = 1000)
  public void checkParserResult() throws Exception {
    final String text = this.getTextFromFile("res/Test0005_FunctionDecls.c");
    final Parser Parser_0_Var = this.parseHelper.parse(text);
    this.valHelper.assertNoErrors(Parser_0_Var);

    Assert.assertNotNull(Parser_0_Var);
    final EList<? extends EObject> External_0_list = Parser_0_Var.getExternal();
    Assert.assertNotNull(External_0_list);
    Assert.assertEquals(5, External_0_list.size());
    // 0
    final ExternalDeclaration ExternalDeclaration_1_Var =
        (ExternalDeclaration) External_0_list.get(0);
    Assert.assertNotNull(ExternalDeclaration_1_Var);
    // 1
    final Declaration Declaration_2_Var = (Declaration) ExternalDeclaration_1_Var.getDeclaration();
    Assert.assertNotNull(Declaration_2_Var);
    // 2
    final DeclarationSpecifiers DeclarationSpecifiers_3_Var =
        (DeclarationSpecifiers) Declaration_2_Var.getSpecifiers();
    Assert.assertNotNull(DeclarationSpecifiers_3_Var);
    final EList<? extends EObject> DeclarationSpecifier_3_list =
        DeclarationSpecifiers_3_Var.getDeclarationSpecifier();
    Assert.assertNotNull(DeclarationSpecifier_3_list);
    Assert.assertEquals(1, DeclarationSpecifier_3_list.size());
    // 3
    final TypeSpecifier TypeSpecifier_4_Var = (TypeSpecifier) DeclarationSpecifier_3_list.get(0);
    Assert.assertNotNull(TypeSpecifier_4_Var);
    Assert.assertEquals("char", TypeSpecifier_4_Var.getName());
    final EList<? extends EObject> InitDeclaratorList_4_list =
        Declaration_2_Var.getInitDeclaratorList();
    Assert.assertNotNull(InitDeclaratorList_4_list);
    Assert.assertEquals(1, InitDeclaratorList_4_list.size());
    // 4
    final InitDeclaratorList InitDeclaratorList_5_Var =
        (InitDeclaratorList) InitDeclaratorList_4_list.get(0);
    Assert.assertNotNull(InitDeclaratorList_5_Var);
    final EList<? extends EObject> InitDeclarator_5_list =
        InitDeclaratorList_5_Var.getInitDeclarator();
    Assert.assertNotNull(InitDeclarator_5_list);
    Assert.assertEquals(1, InitDeclarator_5_list.size());
    // 5
    final InitDeclarator InitDeclarator_6_Var = (InitDeclarator) InitDeclarator_5_list.get(0);
    Assert.assertNotNull(InitDeclarator_6_Var);
    // 6
    final Declarator Declarator_7_Var = (Declarator) InitDeclarator_6_Var.getDeclarator();
    Assert.assertNotNull(Declarator_7_Var);
    // 7
    final DirectDeclarator DirectDeclarator_8_Var =
        (DirectDeclarator) Declarator_7_Var.getDeclarator();
    Assert.assertNotNull(DirectDeclarator_8_Var);
    Assert.assertEquals("do2", DirectDeclarator_8_Var.getIdent());
    final EList<? extends EObject> DeclaratorSuffix_8_list =
        DirectDeclarator_8_Var.getDeclaratorSuffix();
    Assert.assertNotNull(DeclaratorSuffix_8_list);
    Assert.assertEquals(1, DeclaratorSuffix_8_list.size());
    // 8
    final DeclaratorSuffix DeclaratorSuffix_9_Var =
        (DeclaratorSuffix) DeclaratorSuffix_8_list.get(0);
    Assert.assertNotNull(DeclaratorSuffix_9_Var);
    // 9
    final DirectDeclaratorLastSuffix DirectDeclaratorLastSuffix_10_Var =
        (DirectDeclaratorLastSuffix) DeclaratorSuffix_9_Var.getLastSuffix();
    Assert.assertNotNull(DirectDeclaratorLastSuffix_10_Var);
    // 10
    final ExternalDeclaration ExternalDeclaration_11_Var =
        (ExternalDeclaration) External_0_list.get(1);
    Assert.assertNotNull(ExternalDeclaration_11_Var);
    // 11
    final Declaration Declaration_12_Var =
        (Declaration) ExternalDeclaration_11_Var.getDeclaration();
    Assert.assertNotNull(Declaration_12_Var);
    // 12
    final DeclarationSpecifiers DeclarationSpecifiers_13_Var =
        (DeclarationSpecifiers) Declaration_12_Var.getSpecifiers();
    Assert.assertNotNull(DeclarationSpecifiers_13_Var);
    final EList<? extends EObject> DeclarationSpecifier_13_list =
        DeclarationSpecifiers_13_Var.getDeclarationSpecifier();
    Assert.assertNotNull(DeclarationSpecifier_13_list);
    Assert.assertEquals(1, DeclarationSpecifier_13_list.size());
    // 13
    final TypeSpecifier TypeSpecifier_14_Var = (TypeSpecifier) DeclarationSpecifier_13_list.get(0);
    Assert.assertNotNull(TypeSpecifier_14_Var);
    Assert.assertEquals("double", TypeSpecifier_14_Var.getName());
    final EList<? extends EObject> InitDeclaratorList_14_list =
        Declaration_12_Var.getInitDeclaratorList();
    Assert.assertNotNull(InitDeclaratorList_14_list);
    Assert.assertEquals(1, InitDeclaratorList_14_list.size());
    // 14
    final InitDeclaratorList InitDeclaratorList_15_Var =
        (InitDeclaratorList) InitDeclaratorList_14_list.get(0);
    Assert.assertNotNull(InitDeclaratorList_15_Var);
    final EList<? extends EObject> InitDeclarator_15_list =
        InitDeclaratorList_15_Var.getInitDeclarator();
    Assert.assertNotNull(InitDeclarator_15_list);
    Assert.assertEquals(1, InitDeclarator_15_list.size());
    // 15
    final InitDeclarator InitDeclarator_16_Var = (InitDeclarator) InitDeclarator_15_list.get(0);
    Assert.assertNotNull(InitDeclarator_16_Var);
    // 16
    final Declarator Declarator_17_Var = (Declarator) InitDeclarator_16_Var.getDeclarator();
    Assert.assertNotNull(Declarator_17_Var);
    // 17
    final DirectDeclarator DirectDeclarator_18_Var =
        (DirectDeclarator) Declarator_17_Var.getDeclarator();
    Assert.assertNotNull(DirectDeclarator_18_Var);
    Assert.assertEquals("do3", DirectDeclarator_18_Var.getIdent());
    final EList<? extends EObject> DeclaratorSuffix_18_list =
        DirectDeclarator_18_Var.getDeclaratorSuffix();
    Assert.assertNotNull(DeclaratorSuffix_18_list);
    Assert.assertEquals(1, DeclaratorSuffix_18_list.size());
    // 18
    final DeclaratorSuffix DeclaratorSuffix_19_Var =
        (DeclaratorSuffix) DeclaratorSuffix_18_list.get(0);
    Assert.assertNotNull(DeclaratorSuffix_19_Var);
    // 19
    final DirectDeclaratorLastSuffix DirectDeclaratorLastSuffix_20_Var =
        (DirectDeclaratorLastSuffix) DeclaratorSuffix_19_Var.getLastSuffix();
    Assert.assertNotNull(DirectDeclaratorLastSuffix_20_Var);
    // 20
    final ExternalDeclaration ExternalDeclaration_21_Var =
        (ExternalDeclaration) External_0_list.get(2);
    Assert.assertNotNull(ExternalDeclaration_21_Var);
    // 21
    final Declaration Declaration_22_Var =
        (Declaration) ExternalDeclaration_21_Var.getDeclaration();
    Assert.assertNotNull(Declaration_22_Var);
    // 22
    final DeclarationSpecifiers DeclarationSpecifiers_23_Var =
        (DeclarationSpecifiers) Declaration_22_Var.getSpecifiers();
    Assert.assertNotNull(DeclarationSpecifiers_23_Var);
    final EList<? extends EObject> DeclarationSpecifier_23_list =
        DeclarationSpecifiers_23_Var.getDeclarationSpecifier();
    Assert.assertNotNull(DeclarationSpecifier_23_list);
    Assert.assertEquals(1, DeclarationSpecifier_23_list.size());
    // 23
    final TypeSpecifier TypeSpecifier_24_Var = (TypeSpecifier) DeclarationSpecifier_23_list.get(0);
    Assert.assertNotNull(TypeSpecifier_24_Var);
    Assert.assertEquals("float", TypeSpecifier_24_Var.getName());
    final EList<? extends EObject> InitDeclaratorList_24_list =
        Declaration_22_Var.getInitDeclaratorList();
    Assert.assertNotNull(InitDeclaratorList_24_list);
    Assert.assertEquals(1, InitDeclaratorList_24_list.size());
    // 24
    final InitDeclaratorList InitDeclaratorList_25_Var =
        (InitDeclaratorList) InitDeclaratorList_24_list.get(0);
    Assert.assertNotNull(InitDeclaratorList_25_Var);
    final EList<? extends EObject> InitDeclarator_25_list =
        InitDeclaratorList_25_Var.getInitDeclarator();
    Assert.assertNotNull(InitDeclarator_25_list);
    Assert.assertEquals(1, InitDeclarator_25_list.size());
    // 25
    final InitDeclarator InitDeclarator_26_Var = (InitDeclarator) InitDeclarator_25_list.get(0);
    Assert.assertNotNull(InitDeclarator_26_Var);
    // 26
    final Declarator Declarator_27_Var = (Declarator) InitDeclarator_26_Var.getDeclarator();
    Assert.assertNotNull(Declarator_27_Var);
    // 27
    final DirectDeclarator DirectDeclarator_28_Var =
        (DirectDeclarator) Declarator_27_Var.getDeclarator();
    Assert.assertNotNull(DirectDeclarator_28_Var);
    Assert.assertEquals("do4", DirectDeclarator_28_Var.getIdent());
    final EList<? extends EObject> DeclaratorSuffix_28_list =
        DirectDeclarator_28_Var.getDeclaratorSuffix();
    Assert.assertNotNull(DeclaratorSuffix_28_list);
    Assert.assertEquals(1, DeclaratorSuffix_28_list.size());
    // 28
    final DeclaratorSuffix DeclaratorSuffix_29_Var =
        (DeclaratorSuffix) DeclaratorSuffix_28_list.get(0);
    Assert.assertNotNull(DeclaratorSuffix_29_Var);
    // 29
    final DirectDeclaratorLastSuffix DirectDeclaratorLastSuffix_30_Var =
        (DirectDeclaratorLastSuffix) DeclaratorSuffix_29_Var.getLastSuffix();
    Assert.assertNotNull(DirectDeclaratorLastSuffix_30_Var);
    // 30
    final ExternalDeclaration ExternalDeclaration_31_Var =
        (ExternalDeclaration) External_0_list.get(3);
    Assert.assertNotNull(ExternalDeclaration_31_Var);
    // 31
    final Declaration Declaration_32_Var =
        (Declaration) ExternalDeclaration_31_Var.getDeclaration();
    Assert.assertNotNull(Declaration_32_Var);
    // 32
    final DeclarationSpecifiers DeclarationSpecifiers_33_Var =
        (DeclarationSpecifiers) Declaration_32_Var.getSpecifiers();
    Assert.assertNotNull(DeclarationSpecifiers_33_Var);
    final EList<? extends EObject> DeclarationSpecifier_33_list =
        DeclarationSpecifiers_33_Var.getDeclarationSpecifier();
    Assert.assertNotNull(DeclarationSpecifier_33_list);
    Assert.assertEquals(1, DeclarationSpecifier_33_list.size());
    // 33
    final TypeSpecifier TypeSpecifier_34_Var = (TypeSpecifier) DeclarationSpecifier_33_list.get(0);
    Assert.assertNotNull(TypeSpecifier_34_Var);
    Assert.assertEquals("int", TypeSpecifier_34_Var.getName());
    final EList<? extends EObject> InitDeclaratorList_34_list =
        Declaration_32_Var.getInitDeclaratorList();
    Assert.assertNotNull(InitDeclaratorList_34_list);
    Assert.assertEquals(1, InitDeclaratorList_34_list.size());
    // 34
    final InitDeclaratorList InitDeclaratorList_35_Var =
        (InitDeclaratorList) InitDeclaratorList_34_list.get(0);
    Assert.assertNotNull(InitDeclaratorList_35_Var);
    final EList<? extends EObject> InitDeclarator_35_list =
        InitDeclaratorList_35_Var.getInitDeclarator();
    Assert.assertNotNull(InitDeclarator_35_list);
    Assert.assertEquals(1, InitDeclarator_35_list.size());
    // 35
    final InitDeclarator InitDeclarator_36_Var = (InitDeclarator) InitDeclarator_35_list.get(0);
    Assert.assertNotNull(InitDeclarator_36_Var);
    // 36
    final Declarator Declarator_37_Var = (Declarator) InitDeclarator_36_Var.getDeclarator();
    Assert.assertNotNull(Declarator_37_Var);
    // 37
    final DirectDeclarator DirectDeclarator_38_Var =
        (DirectDeclarator) Declarator_37_Var.getDeclarator();
    Assert.assertNotNull(DirectDeclarator_38_Var);
    Assert.assertEquals("do5", DirectDeclarator_38_Var.getIdent());
    final EList<? extends EObject> DeclaratorSuffix_38_list =
        DirectDeclarator_38_Var.getDeclaratorSuffix();
    Assert.assertNotNull(DeclaratorSuffix_38_list);
    Assert.assertEquals(1, DeclaratorSuffix_38_list.size());
    // 38
    final DeclaratorSuffix DeclaratorSuffix_39_Var =
        (DeclaratorSuffix) DeclaratorSuffix_38_list.get(0);
    Assert.assertNotNull(DeclaratorSuffix_39_Var);
    // 39
    final DirectDeclaratorLastSuffix DirectDeclaratorLastSuffix_40_Var =
        (DirectDeclaratorLastSuffix) DeclaratorSuffix_39_Var.getLastSuffix();
    Assert.assertNotNull(DirectDeclaratorLastSuffix_40_Var);
    // 40
    final ExternalDeclaration ExternalDeclaration_41_Var =
        (ExternalDeclaration) External_0_list.get(4);
    Assert.assertNotNull(ExternalDeclaration_41_Var);
    // 41
    final Declaration Declaration_42_Var =
        (Declaration) ExternalDeclaration_41_Var.getDeclaration();
    Assert.assertNotNull(Declaration_42_Var);
    // 42
    final DeclarationSpecifiers DeclarationSpecifiers_43_Var =
        (DeclarationSpecifiers) Declaration_42_Var.getSpecifiers();
    Assert.assertNotNull(DeclarationSpecifiers_43_Var);
    final EList<? extends EObject> DeclarationSpecifier_43_list =
        DeclarationSpecifiers_43_Var.getDeclarationSpecifier();
    Assert.assertNotNull(DeclarationSpecifier_43_list);
    Assert.assertEquals(1, DeclarationSpecifier_43_list.size());
    // 43
    final TypeSpecifier TypeSpecifier_44_Var = (TypeSpecifier) DeclarationSpecifier_43_list.get(0);
    Assert.assertNotNull(TypeSpecifier_44_Var);
    Assert.assertEquals("void", TypeSpecifier_44_Var.getName());
    final EList<? extends EObject> InitDeclaratorList_44_list =
        Declaration_42_Var.getInitDeclaratorList();
    Assert.assertNotNull(InitDeclaratorList_44_list);
    Assert.assertEquals(1, InitDeclaratorList_44_list.size());
    // 44
    final InitDeclaratorList InitDeclaratorList_45_Var =
        (InitDeclaratorList) InitDeclaratorList_44_list.get(0);
    Assert.assertNotNull(InitDeclaratorList_45_Var);
    final EList<? extends EObject> InitDeclarator_45_list =
        InitDeclaratorList_45_Var.getInitDeclarator();
    Assert.assertNotNull(InitDeclarator_45_list);
    Assert.assertEquals(1, InitDeclarator_45_list.size());
    // 45
    final InitDeclarator InitDeclarator_46_Var = (InitDeclarator) InitDeclarator_45_list.get(0);
    Assert.assertNotNull(InitDeclarator_46_Var);
    // 46
    final Declarator Declarator_47_Var = (Declarator) InitDeclarator_46_Var.getDeclarator();
    Assert.assertNotNull(Declarator_47_Var);
    // 47
    final DirectDeclarator DirectDeclarator_48_Var =
        (DirectDeclarator) Declarator_47_Var.getDeclarator();
    Assert.assertNotNull(DirectDeclarator_48_Var);
    Assert.assertEquals("do6", DirectDeclarator_48_Var.getIdent());
    final EList<? extends EObject> DeclaratorSuffix_48_list =
        DirectDeclarator_48_Var.getDeclaratorSuffix();
    Assert.assertNotNull(DeclaratorSuffix_48_list);
    Assert.assertEquals(1, DeclaratorSuffix_48_list.size());
    // 48
    final DeclaratorSuffix DeclaratorSuffix_49_Var =
        (DeclaratorSuffix) DeclaratorSuffix_48_list.get(0);
    Assert.assertNotNull(DeclaratorSuffix_49_Var);
    // 49
    final DirectDeclaratorLastSuffix DirectDeclaratorLastSuffix_50_Var =
        (DirectDeclaratorLastSuffix) DeclaratorSuffix_49_Var.getLastSuffix();
    Assert.assertNotNull(DirectDeclaratorLastSuffix_50_Var);
  }
Пример #2
0
  @Test(timeout = 1000)
  public void checkParserResult() throws Exception {
    final String text = this.getTextFromFile("res/Test0004_Typedefs.c");
    final Parser Parser_0_Var = this.parseHelper.parse(text);
    this.valHelper.assertNoErrors(Parser_0_Var);

    Assert.assertNotNull(Parser_0_Var);
    final EList<? extends EObject> External_0_list = Parser_0_Var.getExternal();
    Assert.assertNotNull(External_0_list);
    Assert.assertEquals(4, External_0_list.size());
    // 0
    final ExternalDeclaration ExternalDeclaration_1_Var =
        (ExternalDeclaration) External_0_list.get(0);
    Assert.assertNotNull(ExternalDeclaration_1_Var);
    // 1
    final Declaration Declaration_2_Var = (Declaration) ExternalDeclaration_1_Var.getDeclaration();
    Assert.assertNotNull(Declaration_2_Var);
    // 2
    final DeclarationSpecifiers DeclarationSpecifiers_3_Var =
        (DeclarationSpecifiers) Declaration_2_Var.getSpecifiers();
    Assert.assertNotNull(DeclarationSpecifiers_3_Var);
    final EList<? extends EObject> DeclarationSpecifier_3_list =
        DeclarationSpecifiers_3_Var.getDeclarationSpecifier();
    Assert.assertNotNull(DeclarationSpecifier_3_list);
    Assert.assertEquals(2, DeclarationSpecifier_3_list.size());
    // 3
    final StorageClassSpecifier StorageClassSpecifier_4_Var =
        (StorageClassSpecifier) DeclarationSpecifier_3_list.get(0);
    Assert.assertNotNull(StorageClassSpecifier_4_Var);
    Assert.assertEquals("typedef", StorageClassSpecifier_4_Var.getName());
    // 4
    final TypeSpecifier TypeSpecifier_5_Var = (TypeSpecifier) DeclarationSpecifier_3_list.get(1);
    Assert.assertNotNull(TypeSpecifier_5_Var);
    Assert.assertEquals("int", TypeSpecifier_5_Var.getName());
    final EList<? extends EObject> InitDeclaratorList_5_list =
        Declaration_2_Var.getInitDeclaratorList();
    Assert.assertNotNull(InitDeclaratorList_5_list);
    Assert.assertEquals(1, InitDeclaratorList_5_list.size());
    // 5
    final InitDeclaratorList InitDeclaratorList_6_Var =
        (InitDeclaratorList) InitDeclaratorList_5_list.get(0);
    Assert.assertNotNull(InitDeclaratorList_6_Var);
    final EList<? extends EObject> InitDeclarator_6_list =
        InitDeclaratorList_6_Var.getInitDeclarator();
    Assert.assertNotNull(InitDeclarator_6_list);
    Assert.assertEquals(1, InitDeclarator_6_list.size());
    // 6
    final InitDeclarator InitDeclarator_7_Var = (InitDeclarator) InitDeclarator_6_list.get(0);
    Assert.assertNotNull(InitDeclarator_7_Var);
    // 7
    final Declarator Declarator_8_Var = (Declarator) InitDeclarator_7_Var.getDeclarator();
    Assert.assertNotNull(Declarator_8_Var);
    // 8
    final DirectDeclarator DirectDeclarator_9_Var =
        (DirectDeclarator) Declarator_8_Var.getDeclarator();
    Assert.assertNotNull(DirectDeclarator_9_Var);
    Assert.assertEquals("NUMBER1", DirectDeclarator_9_Var.getIdent());
    // 9
    final ExternalDeclaration ExternalDeclaration_10_Var =
        (ExternalDeclaration) External_0_list.get(1);
    Assert.assertNotNull(ExternalDeclaration_10_Var);
    // 10
    final Declaration Declaration_11_Var =
        (Declaration) ExternalDeclaration_10_Var.getDeclaration();
    Assert.assertNotNull(Declaration_11_Var);
    // 11
    final DeclarationSpecifiers DeclarationSpecifiers_12_Var =
        (DeclarationSpecifiers) Declaration_11_Var.getSpecifiers();
    Assert.assertNotNull(DeclarationSpecifiers_12_Var);
    final EList<? extends EObject> DeclarationSpecifier_12_list =
        DeclarationSpecifiers_12_Var.getDeclarationSpecifier();
    Assert.assertNotNull(DeclarationSpecifier_12_list);
    Assert.assertEquals(2, DeclarationSpecifier_12_list.size());
    // 12
    final StorageClassSpecifier StorageClassSpecifier_13_Var =
        (StorageClassSpecifier) DeclarationSpecifier_12_list.get(0);
    Assert.assertNotNull(StorageClassSpecifier_13_Var);
    Assert.assertEquals("typedef", StorageClassSpecifier_13_Var.getName());
    // 13
    final TypeSpecifier TypeSpecifier_14_Var = (TypeSpecifier) DeclarationSpecifier_12_list.get(1);
    Assert.assertNotNull(TypeSpecifier_14_Var);
    // 14
    final TypedefName TypedefName_15_Var = (TypedefName) TypeSpecifier_14_Var.getType();
    Assert.assertNotNull(TypedefName_15_Var);
    Assert.assertEquals("NUMBER1", TypedefName_15_Var.getIdent());
    final EList<? extends EObject> InitDeclaratorList_15_list =
        Declaration_11_Var.getInitDeclaratorList();
    Assert.assertNotNull(InitDeclaratorList_15_list);
    Assert.assertEquals(1, InitDeclaratorList_15_list.size());
    // 15
    final InitDeclaratorList InitDeclaratorList_16_Var =
        (InitDeclaratorList) InitDeclaratorList_15_list.get(0);
    Assert.assertNotNull(InitDeclaratorList_16_Var);
    final EList<? extends EObject> InitDeclarator_16_list =
        InitDeclaratorList_16_Var.getInitDeclarator();
    Assert.assertNotNull(InitDeclarator_16_list);
    Assert.assertEquals(1, InitDeclarator_16_list.size());
    // 16
    final InitDeclarator InitDeclarator_17_Var = (InitDeclarator) InitDeclarator_16_list.get(0);
    Assert.assertNotNull(InitDeclarator_17_Var);
    // 17
    final Declarator Declarator_18_Var = (Declarator) InitDeclarator_17_Var.getDeclarator();
    Assert.assertNotNull(Declarator_18_Var);
    // 18
    final DirectDeclarator DirectDeclarator_19_Var =
        (DirectDeclarator) Declarator_18_Var.getDeclarator();
    Assert.assertNotNull(DirectDeclarator_19_Var);
    Assert.assertEquals("NUMBER2", DirectDeclarator_19_Var.getIdent());
    // 19
    final ExternalDeclaration ExternalDeclaration_20_Var =
        (ExternalDeclaration) External_0_list.get(2);
    Assert.assertNotNull(ExternalDeclaration_20_Var);
    // 20
    final Declaration Declaration_21_Var =
        (Declaration) ExternalDeclaration_20_Var.getDeclaration();
    Assert.assertNotNull(Declaration_21_Var);
    // 21
    final DeclarationSpecifiers DeclarationSpecifiers_22_Var =
        (DeclarationSpecifiers) Declaration_21_Var.getSpecifiers();
    Assert.assertNotNull(DeclarationSpecifiers_22_Var);
    final EList<? extends EObject> DeclarationSpecifier_22_list =
        DeclarationSpecifiers_22_Var.getDeclarationSpecifier();
    Assert.assertNotNull(DeclarationSpecifier_22_list);
    Assert.assertEquals(1, DeclarationSpecifier_22_list.size());
    // 22
    final TypeSpecifier TypeSpecifier_23_Var = (TypeSpecifier) DeclarationSpecifier_22_list.get(0);
    Assert.assertNotNull(TypeSpecifier_23_Var);
    // 23
    final TypedefName TypedefName_24_Var = (TypedefName) TypeSpecifier_23_Var.getType();
    Assert.assertNotNull(TypedefName_24_Var);
    Assert.assertEquals("NUMBER1", TypedefName_24_Var.getIdent());
    final EList<? extends EObject> InitDeclaratorList_24_list =
        Declaration_21_Var.getInitDeclaratorList();
    Assert.assertNotNull(InitDeclaratorList_24_list);
    Assert.assertEquals(1, InitDeclaratorList_24_list.size());
    // 24
    final InitDeclaratorList InitDeclaratorList_25_Var =
        (InitDeclaratorList) InitDeclaratorList_24_list.get(0);
    Assert.assertNotNull(InitDeclaratorList_25_Var);
    final EList<? extends EObject> InitDeclarator_25_list =
        InitDeclaratorList_25_Var.getInitDeclarator();
    Assert.assertNotNull(InitDeclarator_25_list);
    Assert.assertEquals(1, InitDeclarator_25_list.size());
    // 25
    final InitDeclarator InitDeclarator_26_Var = (InitDeclarator) InitDeclarator_25_list.get(0);
    Assert.assertNotNull(InitDeclarator_26_Var);
    // 26
    final Declarator Declarator_27_Var = (Declarator) InitDeclarator_26_Var.getDeclarator();
    Assert.assertNotNull(Declarator_27_Var);
    // 27
    final DirectDeclarator DirectDeclarator_28_Var =
        (DirectDeclarator) Declarator_27_Var.getDeclarator();
    Assert.assertNotNull(DirectDeclarator_28_Var);
    Assert.assertEquals("a", DirectDeclarator_28_Var.getIdent());
    // 28
    final ExternalDeclaration ExternalDeclaration_29_Var =
        (ExternalDeclaration) External_0_list.get(3);
    Assert.assertNotNull(ExternalDeclaration_29_Var);
    // 29
    final Declaration Declaration_30_Var =
        (Declaration) ExternalDeclaration_29_Var.getDeclaration();
    Assert.assertNotNull(Declaration_30_Var);
    // 30
    final DeclarationSpecifiers DeclarationSpecifiers_31_Var =
        (DeclarationSpecifiers) Declaration_30_Var.getSpecifiers();
    Assert.assertNotNull(DeclarationSpecifiers_31_Var);
    final EList<? extends EObject> DeclarationSpecifier_31_list =
        DeclarationSpecifiers_31_Var.getDeclarationSpecifier();
    Assert.assertNotNull(DeclarationSpecifier_31_list);
    Assert.assertEquals(1, DeclarationSpecifier_31_list.size());
    // 31
    final TypeSpecifier TypeSpecifier_32_Var = (TypeSpecifier) DeclarationSpecifier_31_list.get(0);
    Assert.assertNotNull(TypeSpecifier_32_Var);
    // 32
    final TypedefName TypedefName_33_Var = (TypedefName) TypeSpecifier_32_Var.getType();
    Assert.assertNotNull(TypedefName_33_Var);
    Assert.assertEquals("NUMBER2", TypedefName_33_Var.getIdent());
    final EList<? extends EObject> InitDeclaratorList_33_list =
        Declaration_30_Var.getInitDeclaratorList();
    Assert.assertNotNull(InitDeclaratorList_33_list);
    Assert.assertEquals(1, InitDeclaratorList_33_list.size());
    // 33
    final InitDeclaratorList InitDeclaratorList_34_Var =
        (InitDeclaratorList) InitDeclaratorList_33_list.get(0);
    Assert.assertNotNull(InitDeclaratorList_34_Var);
    final EList<? extends EObject> InitDeclarator_34_list =
        InitDeclaratorList_34_Var.getInitDeclarator();
    Assert.assertNotNull(InitDeclarator_34_list);
    Assert.assertEquals(1, InitDeclarator_34_list.size());
    // 34
    final InitDeclarator InitDeclarator_35_Var = (InitDeclarator) InitDeclarator_34_list.get(0);
    Assert.assertNotNull(InitDeclarator_35_Var);
    // 35
    final Declarator Declarator_36_Var = (Declarator) InitDeclarator_35_Var.getDeclarator();
    Assert.assertNotNull(Declarator_36_Var);
    // 36
    final DirectDeclarator DirectDeclarator_37_Var =
        (DirectDeclarator) Declarator_36_Var.getDeclarator();
    Assert.assertNotNull(DirectDeclarator_37_Var);
    Assert.assertEquals("b", DirectDeclarator_37_Var.getIdent());
  }