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

Jon Daley plogworld at jon.limedaley.com
Mon Jul 24 11:57:05 GMT 2006


 	I noticed it in the last test case, and in the tagcloud plugin, 
that we end up changing "wasn't" to "wasn" "t", which looks strange in the 
tag cloud, since "wasn" shows up as a word, and the slug puts a separator 
so it becomes "wasn-t".
 	I am not sure if there is a good way to fix that everywhere.

On Mon, 24 Jul 2006, jondaley at devel.lifetype.net wrote:

> 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 ) {
>
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.lifetype.net
> http://devel.lifetype.net/mailman/listinfo/plog-svn
>

-- 
Jon Daley
http://jon.limedaley.com/

If we are to be disciples of Christ, we need to accept discipline
as part of our spiritual life - not out of blind obedience to
authority, but as a personal expression of investing ourselves
fully in all that we value.
-- Father Gary Dalmasso


More information about the pLog-svn mailing list