Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r53450 - branches/quickbook-1.5/test
From: daniel_james_at_[hidden]
Date: 2009-05-30 09:01:44


Author: danieljames
Date: 2009-05-30 09:01:43 EDT (Sat, 30 May 2009)
New Revision: 53450
URL: http://svn.boost.org/trac/boost/changeset/53450

Log:
Add a couple of tests for quickbook 1.4 behaviour to try to preserve it.
Added:
   branches/quickbook-1.5/test/templates_1_4.gold (contents, props changed)
   branches/quickbook-1.5/test/templates_1_4.quickbook (contents, props changed)
Text files modified:
   branches/quickbook-1.5/test/Jamfile.v2 | 1 +
   1 files changed, 1 insertions(+), 0 deletions(-)

Modified: branches/quickbook-1.5/test/Jamfile.v2
==============================================================================
--- branches/quickbook-1.5/test/Jamfile.v2 (original)
+++ branches/quickbook-1.5/test/Jamfile.v2 2009-05-30 09:01:43 EDT (Sat, 30 May 2009)
@@ -20,6 +20,7 @@
     [ quickbook-test link-side-by-side ]
     [ quickbook-test escape ]
     [ quickbook-test templates ]
+ [ quickbook-test templates_1_4 ]
     [ quickbook-test xinclude ]
     [ quickbook-test import ]
     [ quickbook-fail-test fail-include ]

Added: branches/quickbook-1.5/test/templates_1_4.gold
==============================================================================
--- (empty file)
+++ branches/quickbook-1.5/test/templates_1_4.gold 2009-05-30 09:01:43 EDT (Sat, 30 May 2009)
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE library PUBLIC "-//Boost//DTD BoostBook XML V1.0//EN" "http://www.boost.org/tools/boostbook/dtd/boostbook.dtd">
+<article id="template_1_4" last-revision="DEBUG MODE Date: 2000/12/20 12:00:00 $"
+ xmlns:xi="http://www.w3.org/2001/XInclude">
+ <title>Template 1.4</title>
+ <articleinfo>
+ </articleinfo>
+ <para>
+ dynamic scoping
+ </para>
+ <para>
+ old
+ </para>
+</article>

Added: branches/quickbook-1.5/test/templates_1_4.quickbook
==============================================================================
--- (empty file)
+++ branches/quickbook-1.5/test/templates_1_4.quickbook 2009-05-30 09:01:43 EDT (Sat, 30 May 2009)
@@ -0,0 +1,16 @@
+[article Template 1.4
+ [quickbook 1.4]
+]
+
+[/ 1.4 uses dynamic scoping ]
+
+[template x static scoping]
+[template foo1[] [x]]
+[template foo2[x] [foo1]]
+[foo2 dynamic scoping]
+
+[/ In 1.4 template arguments are scoped at the point they are used]
+
+[template y new]
+[template foo3[a y] [a]]
+[foo3 [y] old]
\ No newline at end of file


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk