[pLog-svn] r3786 - plog/trunk/class/test/tests/data

jondaley at devel.lifetype.net jondaley at devel.lifetype.net
Mon Jul 24 11:05:02 GMT 2006


Author: jondaley
Date: 2006-07-24 11:05:01 +0000 (Mon, 24 Jul 2006)
New Revision: 3786

Modified:
   plog/trunk/class/test/tests/data/textfilter_test.class.php
Log:
more tests.  The unit test thing is pretty nifty.

Modified: plog/trunk/class/test/tests/data/textfilter_test.class.php
===================================================================
--- plog/trunk/class/test/tests/data/textfilter_test.class.php	2006-07-24 10:57:57 UTC (rev 3785)
+++ plog/trunk/class/test/tests/data/textfilter_test.class.php	2006-07-24 11:05:01 UTC (rev 3786)
@@ -31,8 +31,11 @@
 				"two  spaces" => "two{$sep}spaces",
 				"   leadingblanks" => "leadingblanks",
 				"trailingblanks  " => "trailingblanks",
-				"<a>html</a><b>is</b><h1>not</h1><p>allowed</p>" => "htmlisnotallowed"
-				);
+				"!@#extraseparators'''" => "extraseparators",
+				"<a>html</a><b>is</b><h1>not</h1><p>allowed</p>"
+                 => "htmlisnotallowed",
+				"unclosed < html</a><b >shouldn't </b>be<h1> <p>stripped</p>"
+                 => "unclosed{$sep}htmlshouldn{$sep}t{$sep}be{$sep}stripped");
 				
 			// process each one of them
 			foreach( $tests as $input => $output ) {



More information about the pLog-svn mailing list