Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r75881 - trunk/tools/build/v2/test/core-language
From: steven_at_[hidden]
Date: 2011-12-09 18:21:42


Author: steven_watanabe
Date: 2011-12-09 18:21:40 EST (Fri, 09 Dec 2011)
New Revision: 75881
URL: http://svn.boost.org/trac/boost/changeset/75881

Log:
Tests for join
Text files modified:
   trunk/tools/build/v2/test/core-language/test.jam | 11 +++++++++++
   1 files changed, 11 insertions(+), 0 deletions(-)

Modified: trunk/tools/build/v2/test/core-language/test.jam
==============================================================================
--- trunk/tools/build/v2/test/core-language/test.jam (original)
+++ trunk/tools/build/v2/test/core-language/test.jam 2011-12-09 18:21:40 EST (Fri, 09 Dec 2011)
@@ -63,6 +63,7 @@
 local p0 = name ;
 local p1 = dir/name ;
 local p2 = dir/sub/name ;
+local j1 = , - ;
 
 check-equal var-product : $(v1)$(v2) : 14 15 16 24 25 26 34 35 36 ;
 
@@ -80,6 +81,16 @@
 check-equal var-member : $(v6:M) : (member.txt) ;
 check-equal var-multi : $(v6:$(select1)) : <GRIST> path generic/path.txt ;
 
+check-equal var-join-0 : $(:J=,) : ;
+check-equal var-join-1 : $(p0:J=,) : name ;
+check-equal var-join-3 : $(v1:J=,) : 1,2,3 ;
+check-equal var-set-grist-join : $(v1:G=grist:J=,) : <grist>1,<grist>2,<grist>3 ;
+# behavior change. In the past, a J= modifier would
+# cause only the last element of the other modifiers
+# to take effect.
+check-equal var-set-grist-multi-join : $(v1:G=$(g):J=,) : <g1>1,<g1>2,<g1>3 <g2>1,<g2>2,<g2>3 ;
+check-equal var-set-grist-multi-join-multi : $(v1:G=$(g):J=$(j1)) : <g1>1,<g1>2,<g1>3 <g1>1-<g1>2-<g1>3 <g2>1,<g2>2,<g2>3 <g2>1-<g2>2-<g2>3 ;
+
 check-equal var-D=-0 : name : $(p0:D=) ;
 check-equal var-D=-1 : name : $(p1:D=) ;
 check-equal var-D=-2 : name : $(p2:D=) ;


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