Shouldn't...

> +               expected = "abcdef";

rather be...

> +               expected = "abc def";

?

I thought "trim" functions were generally used to trim "spaces" on
either side of a string, but not in the middle... or am I mistaken?



On 15 Dez., 14:10, [email protected] wrote:
> http://trac.tiddlywiki.org/changeset/11336
>
> MartinBudden
> 2009-12-15 05:10:51 -0800 (Tue, 15 Dec 2009)
> 34
> TiddlyWiki - added test for trim()
>
> ---------------
>
> U   Trunk/core/test/js/Strings.js
>
> ---------------
>
> Modified: Trunk/core/test/js/Strings.js
> ===================================================================
> --- Trunk/core/test/js/Strings.js       2009-12-15 11:25:24 UTC (rev 11335)
> +++ Trunk/core/test/js/Strings.js       2009-12-15 13:10:51 UTC (rev 11336)
> @@ -13,6 +13,10 @@
>                 expected = "abcdef";
>                 ok(actual==expected,'String trim');
>
> +               actual = " abc def ".trim();
> +               expected = "abcdef";
> +               ok(actual==expected,'String trim');
> +
>                 actual = "background-color".unDash();
>                 expected = "backgroundColor";
>                 ok(actual==expected,'String undash');

--

You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tiddlywikidev?hl=en.


Reply via email to