From: Alan T. DeKok Date: Sun, 24 Sep 2023 13:45:45 +0000 (-0400) Subject: test that local variables can be expanded X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f5725f4ed2ec9b600327231397e5782afd210fe0;p=thirdparty%2Ffreeradius-server.git test that local variables can be expanded --- diff --git a/src/tests/keywords/local-variable b/src/tests/keywords/local-variable index 1009f99de60..25eeccda5a4 100644 --- a/src/tests/keywords/local-variable +++ b/src/tests/keywords/local-variable @@ -30,6 +30,17 @@ group { if !(&request.[#] == 5) { test_fail } + + # + # Local variables can be expanded + # + &Reply-Message := "This is %{foo}" + if !(&Reply-Message == "This is 1") { + test_fail + } + + &request -= &Reply-Message + } # leaving this scope automatically deletes &foo if !(&request.[#] == 5) {