Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

cformat
Class ScanfFormatTest  view ScanfFormatTest download ScanfFormatTest.java

java.lang.Object
  extended bycformat.ScanfFormatTest

public class ScanfFormatTest
extends java.lang.Object

Testing class for ScanfFormat. Run the main method to test the class.


Constructor Summary
ScanfFormatTest()
           
 
Method Summary
static void main(java.lang.String[] args)
          Tests the class ScanfFormat.
private static void myAssert(boolean ok)
           
private static boolean streq(java.lang.String s1, java.lang.String s2)
           
private static void test(java.lang.String s, int width, int type, java.lang.String cmatch, java.lang.String prefix, java.lang.String suffix)
           
private static void test(java.lang.String s, java.lang.String errMsg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScanfFormatTest

public ScanfFormatTest()
Method Detail

main

public static void main(java.lang.String[] args)
Tests the class ScanfFormat. If everything is OK, the string "Passed" is printed, and the program exits with status 0. Otherwise, diagnostics and a stack trace are printed, and the program exits with status 1.


myAssert

private static void myAssert(boolean ok)

streq

private static boolean streq(java.lang.String s1,
                             java.lang.String s2)

test

private static void test(java.lang.String s,
                         java.lang.String errMsg)

test

private static void test(java.lang.String s,
                         int width,
                         int type,
                         java.lang.String cmatch,
                         java.lang.String prefix,
                         java.lang.String suffix)