[Fb-contrib-commit] SF.net SVN: fb-contrib: [962] trunk/fb-contrib/samples/SPP_Sample.java
Brought to you by:
dbrosius
From: <dbr...@us...> - 2007-11-08 23:29:21
|
Revision: 962 http://fb-contrib.svn.sourceforge.net/fb-contrib/?rev=962&view=rev Author: dbrosius Date: 2007-11-08 15:29:23 -0800 (Thu, 08 Nov 2007) Log Message: ----------- more tests Modified Paths: -------------- trunk/fb-contrib/samples/SPP_Sample.java Modified: trunk/fb-contrib/samples/SPP_Sample.java =================================================================== --- trunk/fb-contrib/samples/SPP_Sample.java 2007-11-08 23:03:56 UTC (rev 961) +++ trunk/fb-contrib/samples/SPP_Sample.java 2007-11-08 23:29:23 UTC (rev 962) @@ -99,17 +99,45 @@ public void testSuspiciousStringTests(String s) { + int a = 0, b = 0, c = 0, d = 0; + String e = "Foo"; + if ((s == null) || (s.length() > 0)) System.out.println("Booya"); if ((s == null) || (s.length() != 0)) System.out.println("Booya"); if ((s != null) && (s.length() == 0)) System.out.println("Booya"); + + if ((e == null) || (e.length() > 0)) + System.out.println("Booya"); + if ((e == null) || (e.length() != 0)) + System.out.println("Booya"); + if ((e != null) && (e.length() == 0)) + System.out.println("Booya"); } public void testFPSST(String s) { + int a = 0, b = 0, c = 0, d = 0; + String e = "Foo"; + if ((s == null) || (s.length() == 0)) System.out.println("Booya"); + + if ((s != null) && (s.length() >= 0)) + System.out.println("Booya"); + + if ((s != null) && (s.length() != 0)) + System.out.println("Booya"); + + if ((e == null) || (e.length() == 0)) + System.out.println("Booya"); + + if ((e != null) && (e.length() >= 0)) + System.out.println("Booya"); + + if ((e != null) && (e.length() != 0)) + System.out.println("Booya"); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |