FileDocCategorySizeDatePackage
FortranLineReaderTest.javaAPI DocExample882Sun Feb 29 19:32:14 GMT 2004None

FortranLineReaderTest

public class FortranLineReaderTest extends TestCase
author
ian

Fields Summary
protected static String
sampleTxt
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

		//junit.textui.TestRunner.run(FortranLineReaderTest.suite());
	
public voidtestReading()


	     
		FortranLineReader is = new FortranLineReader(
			new StringReader(sampleTxt));
		String aLine;
		while ((aLine = is.readLine()) != null) {
			if (is.hasStatementNumber())
				System.out.println("\tStatement number: " +
					is.getStatementNumber());
			System.out.println(is.getLineNumber() + ": " + aLine);
		}
		is.close();