diff --git a/tests/acceptance/00_basics/01_compiler/trailing_comma_args.cf b/tests/acceptance/00_basics/01_compiler/trailing_comma_args.cf new file mode 100644 index 0000000000..d0cbc19ffc --- /dev/null +++ b/tests/acceptance/00_basics/01_compiler/trailing_comma_args.cf @@ -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"; +} diff --git a/tests/acceptance/00_basics/01_compiler/trailing_comma_arglist.cf b/tests/acceptance/00_basics/01_compiler/trailing_comma_paramlist.cf similarity index 100% rename from tests/acceptance/00_basics/01_compiler/trailing_comma_arglist.cf rename to tests/acceptance/00_basics/01_compiler/trailing_comma_paramlist.cf