cformat
Class ScanfFormatTest

java.lang.Object
cformat.ScanfFormatTest
- public class ScanfFormatTest
- extends java.lang.Object
Testing class for ScanfFormat. Run the main
method to test the class.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScanfFormatTest
public ScanfFormatTest()
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)