[Templates-cvs] cvs commit: Template2/t filter.t

cvs@template-toolkit.org cvs@template-toolkit.org


cvs         06/05/30 07:47:45

  Modified:    t        filter.t
  Log:
  * changed tests for uri filter to account for new behaviour
  
  Revision  Changes    Path
  2.22      +6 -11     Template2/t/filter.t
  
  Index: filter.t
  ===================================================================
  RCS file: /template-toolkit/Template2/t/filter.t,v
  retrieving revision 2.21
  retrieving revision 2.22
  diff -u -r2.21 -r2.22
  --- filter.t	2006/01/30 17:08:05	2.21
  +++ filter.t	2006/05/30 07:47:45	2.22
  @@ -12,7 +12,7 @@
   # This is free software; you can redistribute it and/or modify it
   # under the same terms as Perl itself.
   #
  -# $Id: filter.t,v 2.21 2006/01/30 17:08:05 abw Exp $
  +# $Id: filter.t,v 2.22 2006/05/30 07:47:45 abw Exp $
   #
   #========================================================================
   
  @@ -890,22 +890,17 @@
   -- test --
   [% "my<file & your>file.html" FILTER uri %]
   -- expect --
  -my%3Cfile%20&%20your%3Efile.html
  +my%3Cfile%20%26%20your%3Efile.html
   
   -- test --
  -[% "my<file & your>file.html" | uri | html %]
  +[% "foo@bar" FILTER uri %]
   -- expect --
  -my%3Cfile%20&amp;%20your%3Efile.html
  +foo%40bar
   
   -- test --
  -[% "guitar&amp;file.html" | uri %]
  --- expect --
  -guitar&amp;file.html
  -
  --- test --
  -[% "guitar&amp;file.html" | uri | html %]
  +[% "my<file & your>file.html" | uri | html %]
   -- expect --
  -guitar&amp;amp;file.html
  +my%3Cfile%20%26%20your%3Efile.html
   
   -- test --
   [% 'foobar' | ucfirst %]