/*
 * This file is released under terms of BSD license
 * See LICENSE file for more information
 */

package cx2x.xcodeml.xelement;

import java.io.File;
import static org.junit.Assert.*;

import helper.XmlHelper;
import org.junit.Test;

/**
 * Test the features of the XcodeProgram class
 *
 * @author clementval
 */

public class XcodeProgTest {



  @Test
  public void basicXcodeProgTest() {
    File f = new File(XmlHelper.TEST_DATA);
    assertTrue(f.exists());
    XcodeProgram xcodeml = XcodeProgram.createFromFile(XmlHelper.TEST_DATA);
    assertNotNull(xcodeml);
    assertEquals(8, xcodeml.getTypeTable().count());
    assertEquals(2, xcodeml.getGlobalSymbolsTable().count());
  }

}

@@ -342,18 +342,16 @@
 Test %7B%0A%0A
-%0A%0A
   @Test%0A
@@ -564,16 +564,223 @@
 odeml);%0A
+    assertNotNull(xcodeml.getTime());%0A    assertNotNull(xcodeml.getCompilerInfo());%0A    assertNotNull(xcodeml.getVersion());%0A    assertNotNull(xcodeml.getLanguage());%0A    assertNotNull(xcodeml.getSource());%0A
     asse
@@ -886,15 +886,82 @@
 unt());%0A
+    assertEquals(2, xcodeml.getGlobalDeclarationsTable().count());%0A
   %7D%0A%0A%7D%0A

Add assertions