You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the problem
When concatenating the not_set value with a string, it outputs the value '[not set]'.
This value shouldn't be outputted originally.
Expected behavior
// @scope: recv// @suite: print not_set as emptysubtest_recv {
declare local var.NOTSET STRING;
declare local var.message STRING;
set var.message = var.NOTSET;
assert.equal(var.message, "");
set var.message = "output:" var.NOTSET;
assert.equal(var.message, "output:");
}
This should pass, but in falco v1.3.0, it results in the following error.
Various functions and operators treat unset strings differently; some render them as the empty string, and some as "(null)". This handling is a property of the function (or operator), rather than a property of the STRING type.
A not set value is converted to an empty string when assigned to a STRING variable
Describe the problem
When concatenating the not_set value with a string, it outputs the value '[not set]'.
This value shouldn't be outputted originally.
Expected behavior
This should pass, but in falco v1.3.0, it results in the following error.
Additional context
I have prepared various test cases related to 'empty'.
https://github.com/bungoume/falco-vcl-empty-test/blob/main/tests/empty.test.vcl
The text was updated successfully, but these errors were encountered: