Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions tests/acceptance/00_basics/01_compiler/trailing_comma_args.cf
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
body common control
{
bundlesequence => { "test" };
}

bundle agent test
{
classes:
# Testing function call
"exists" expression => fileexists($(this.promise_filename));
"exists_trailing" expression => fileexists($(this.promise_filename), );

methods:
# Testing bundle call
"check" usebundle => check("a", "b", "c");
"check_trailing" usebundle => check("d", "e", "f", );

reports:
exists.exists_trailing.abc.def::
"$(this.promise_filename) Pass: Both trailing and non-trailing functions/bundles match";

!(exists.exists_trailing.abc.def)::
"$(this.promise_filename) Fail: Class evaluation failing between trailing and non-trailing functions/bundles";
}

bundle agent check(a, b, c)
{
classes:
"$(a)$(b)$(c)"
scope => "namespace";
}
Loading