0
|
1 |
CONFIG = 1 2 3 4 5
|
|
2 |
JOINEDCONFIG = $$join( CONFIG, "-GLUE-", "-BEFORE-", "-AFTER-" )
|
|
3 |
!contains( JOINEDCONFIG, -BEFORE-1-GLUE-2-GLUE-3-GLUE-4-GLUE-5-AFTER- ) {
|
|
4 |
message( "FAILED: join [$$JOINEDCONFIG != -BEFORE-1-GLUE-2-GLUE-3-GLUE-4-GLUE-5-AFTER-]" )
|
|
5 |
}
|
|
6 |
|
|
7 |
# To test member we need to use join
|
|
8 |
NEWCONFIG = $$member( CONFIG, 4 ) $$member( CONFIG, 3 ) $$member( CONFIG, 2 )
|
|
9 |
JOINEDNEWCONFIG = $$join( NEWCONFIG, "-" )
|
|
10 |
!contains( JOINEDNEWCONFIG, 5-4-3 ) {
|
|
11 |
message( "FAILED: member [$$JOINEDNEWCONFIG != 5-4-3]" )
|
|
12 |
}
|
|
13 |
|
|
14 |
|