// Path: src/java/minijava/test/SampleCode.java
// public class SampleCode {
// 
// 	/**
// 	 * Points to a directory containing sample java code to parse.
// 	 */
// 	public final static File sample_dir = new File("resources/sample");
// 
// 	/**
// 	 * Filter for selecting Java files only.
// 	 */
// 	private static final FilenameFilter javaFileFilter = new FilenameFilter() {
// 		@Override
// 		public boolean accept(File dir, String name) {
// 			return name.endsWith(".java");
// 		}
// 	};
// 
// 	/**
// 	 * @return An array of sample MiniJava files.
// 	 */
// 	public static File[] sampleFiles() {
// 		File[] files = sample_dir.listFiles(javaFileFilter);
// 		// Should sort the array to ensure that we produce the files in the same order
// 		// independent of the order in which the OS produces them.
// 		Arrays.sort(files);
// 		return files;
// 	}
// 
// }


import static minijava.parser.jcc.JCCMiniJavaParserConstants.EOF;
import static minijava.parser.jcc.JCCMiniJavaParserConstants.IDENTIFIER;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.StringReader;
import minijava.parser.jcc.JCCMiniJavaParser;
import minijava.parser.jcc.JCCMiniJavaParserConstants;
import minijava.parser.jcc.Token;
import minijava.test.SampleCode;
import org.junit.Assert;
import org.junit.Test;
	}
	
	@Test public void comments() {
		test(   "// A single line comment\n" +
				"/* A multi line comment\n" +
				"   with more than one\n" +
				"   line of comments in it\n" +
				"*/\n" +
				"  \t // should allow them to preceeded by spaces or tabs\n",
			new int[0] );
	}
	@Test public void starComments() {
		test("/**/" , new int[0] );
		test("/***/" , new int[0] );
		test("/****/" , new int[0] );
	}
	@Test public void commensWithSomethingInBetweem() {
		test(   "/* A comment */" +
				"anIdentifier" +
				"/* Another comment */",
			new int[] { IDENTIFIER } );
	}
	
	@Test public void commentAtEOF() {
		test("// A single line comment",
			new int[0] );
	}
	
	@Test public void sampleCode() throws FileNotFoundException {
		//Read all the sample code. It should contain only valid tokens.
// Path: src/java/minijava/test/SampleCode.java
// public class SampleCode {
// 
// 	/**
// 	 * Points to a directory containing sample java code to parse.
// 	 */
// 	public final static File sample_dir = new File("resources/sample");
// 
// 	/**
// 	 * Filter for selecting Java files only.
// 	 */
// 	private static final FilenameFilter javaFileFilter = new FilenameFilter() {
// 		@Override
// 		public boolean accept(File dir, String name) {
// 			return name.endsWith(".java");
// 		}
// 	};
// 
// 	/**
// 	 * @return An array of sample MiniJava files.
// 	 */
// 	public static File[] sampleFiles() {
// 		File[] files = sample_dir.listFiles(javaFileFilter);
// 		// Should sort the array to ensure that we produce the files in the same order
// 		// independent of the order in which the OS produces them.
// 		Arrays.sort(files);
// 		return files;
// 	}
// 
// }


// Path: src/java/minijava/test/parser/Test2LexInternal.java
import static minijava.parser.jcc.JCCMiniJavaParserConstants.EOF;
import static minijava.parser.jcc.JCCMiniJavaParserConstants.IDENTIFIER;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.StringReader;
import minijava.parser.jcc.JCCMiniJavaParser;
import minijava.parser.jcc.JCCMiniJavaParserConstants;
import minijava.parser.jcc.Token;
import minijava.test.SampleCode;
import org.junit.Assert;
import org.junit.Test;

	}
	
	@Test public void comments() {
		test(   "// A single line comment\n" +
				"/* A multi line comment\n" +
				"   with more than one\n" +
				"   line of comments in it\n" +
				"*/\n" +
				"  \t // should allow them to preceeded by spaces or tabs\n",
			new int[0] );
	}
	@Test public void starComments() {
		test("/**/" , new int[0] );
		test("/***/" , new int[0] );
		test("/****/" , new int[0] );
	}
	@Test public void commensWithSomethingInBetweem() {
		test(   "/* A comment */" +
				"anIdentifier" +
				"/* Another comment */",
			new int[] { IDENTIFIER } );
	}
	
	@Test public void commentAtEOF() {
		test("// A single line comment",
			new int[0] );
	}
	
	@Test public void sampleCode() throws FileNotFoundException {
		//Read all the sample code. It should contain only valid tokens.
		File[] files = SampleCode.sampleFiles();