-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Acceptance test for join() on cf_null list
- Loading branch information
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Test that cf_null lists can be joined | ||
|
||
body common control | ||
{ | ||
inputs => { "../../default.cf.sub" }; | ||
bundlesequence => { default("$(this.promise_filename)") }; | ||
version => "1.0"; | ||
nova_edition:: | ||
host_licenses_paid => "5"; | ||
} | ||
|
||
bundle agent init | ||
{ | ||
vars: | ||
"dummy" string => ""; | ||
} | ||
|
||
bundle agent test | ||
{ | ||
vars: | ||
"dummy" string => ""; | ||
} | ||
|
||
bundle agent check | ||
{ | ||
vars: | ||
"emptylist" slist => { "cf_null" }; | ||
"joined" string => join(":", "emptylist"); | ||
|
||
classes: | ||
"ok1" expression => strcmp($(joined), ""); | ||
|
||
"ok" and => { "ok1" }; | ||
|
||
reports: | ||
ok:: | ||
"$(this.promise_filename) Pass"; | ||
!ok:: | ||
"$(this.promise_filename) FAIL"; | ||
DEBUG:: | ||
"Expected empty string, got $(joined)!"; | ||
} |