public static void main(String[] args) throws IOException {
byte[] srcBuf = new byte[SRC.length()];
InputStream input = new IncludeToLowerInputStream( new StringBufferInputStream(SRC) );
// InputStream input = new StringBufferInputStream(SRC) ;
if ( TGT.length() != input.read(srcBuf)) {
System.err.println("too few charcaters in converted string");
System.exit(0);
};
if (! TGT.equals(new String(srcBuf))) {
System.err.println("Converted string not equal to expected string");
System.exit(0);
}
System.out.println("Everything went accroding to plans");
input.close(); // useless but avoid warnings in Eclipse
}
IncludeFilterTest.java 文件源码
java
阅读 16
收藏 0
点赞 0
评论 0
项目:VerveineC-Cpp
作者:
评论列表
文章目录