diff --git a/v2/test/core-language/test.jam b/v2/test/core-language/test.jam index 26ec8ffeb..9c94dc4b1 100644 --- a/v2/test/core-language/test.jam +++ b/v2/test/core-language/test.jam @@ -63,6 +63,7 @@ local sub = 2 1 ; 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-dir : $(v6:D) : generic ; check-equal var-member : $(v6:M) : (member.txt) ; check-equal var-multi : $(v6:$(select1)) : 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=,) : 1,2,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=,) : 1,2,3 1,2,3 ; +check-equal var-set-grist-multi-join-multi : $(v1:G=$(g):J=$(j1)) : 1,2,3 1-2-3 1,2,3 1-2-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=) ;