[Templates-cvs] cvs commit: TT3/t/tag directive.t

cvs@template-toolkit.org cvs@template-toolkit.org
Fri, 03 Dec 2004 13:48:07 +0000


cvs         04/12/03 13:48:07

  Modified:    t/tag    directive.t
  Log:
  * fixed up some tests to account for new sexpr structure
  
  Revision  Changes    Path
  1.16      +14 -16    TT3/t/tag/directive.t
  
  Index: directive.t
  ===================================================================
  RCS file: /template-toolkit/TT3/t/tag/directive.t,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- directive.t	2004/12/03 13:38:01	1.15
  +++ directive.t	2004/12/03 13:48:07	1.16
  @@ -9,7 +9,7 @@
   # This is free software; you can redistribute it and/or modify it
   # under the same terms as Perl itself.
   #
  -# $Id: directive.t,v 1.15 2004/12/03 13:38:01 abw Exp $
  +# $Id: directive.t,v 1.16 2004/12/03 13:48:07 abw Exp $
   #
   #========================================================================
   
  @@ -22,7 +22,7 @@
   use Template::Scanner;
   use Template::TT3::Tag::Directive;
   use Template::Generator::Debug;
  -use Template::Test tests => 97, import => ':all';
  +use Template::Test tests => 118, import => ':all';
   
   my $DEBUG = grep /^--?d(ebug)?$/, @ARGV;
   #$Template::Tag::DEBUG = 
  @@ -233,14 +233,14 @@
     <text:before >
     <line:1>
     <set:
  -    <assign:
  +    [
         <variable:
           <node:
             <ident:bam>
           >
         >
         <number:20>
  -    >
  +    ]
     >
     <text: after>
   >
  @@ -333,14 +333,14 @@
     <text:pre >
     <line:1>
     <set:
  -    <assign:
  +    [
         <variable:
           <node:
             <ident:baz>
           >
         >
         <number:10>
  -    >
  +    ]
     >
     <text: post >
     <line:7>
  @@ -502,7 +502,7 @@
   <template:
     <line:1>
     <include:
  -    <filename:foo>
  +    <path:foo>
       <no args>
     >
   >
  @@ -514,7 +514,7 @@
   <template:
     <line:1>
     <include:
  -    <filename:foo>
  +    <path:foo>
       <args:
         <tuple:
           <ident:x>
  @@ -540,7 +540,7 @@
   <template:
     <line:1>
     <include:
  -    <filename:bar>
  +    <path:bar>
       <args:
         <tuple:
           <ident:x>
  @@ -560,7 +560,7 @@
   <template:
     <line:1>
     <wrapper:
  -    <filename:y>
  +    <path:y>
       <no args>
       <block:
         <get:
  @@ -585,7 +585,7 @@
   <template:
     <line:1>
     <wrapper:
  -    <filename:foo>
  +    <path:foo>
       <args:
         <tuple:
           <ident:pi>
  @@ -619,7 +619,7 @@
   <template:
     <line:1>
     <wrapper:
  -    <filename:y>
  +    <path:y>
       <no args>
       <get:
         <variable:
  @@ -638,10 +638,10 @@
   <template:
     <line:1>
     <wrapper:
  -    <filename:z>
  +    <path:z>
       <no args>
       <wrapper:
  -      <filename:y>
  +      <path:y>
         <no args>
         <get:
           <variable:
  @@ -710,8 +710,6 @@
   #------------------------------------------------------------------------
   # test nested tags
   #------------------------------------------------------------------------
  -
  --- start --
   
   -- test nested tag --
   [% x = [% INCLUDE bar %] %]