From 50b37d4a27d3295a29afca2286f1a5a086142cec Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 28 Apr 2024 11:49:46 +0200 Subject: Adding upstream version 3.2.1+dfsg. Signed-off-by: Daniel Baumann --- src/tests/keywords/cast-integer | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/tests/keywords/cast-integer (limited to 'src/tests/keywords/cast-integer') diff --git a/src/tests/keywords/cast-integer b/src/tests/keywords/cast-integer new file mode 100644 index 0000000..4972ee7 --- /dev/null +++ b/src/tests/keywords/cast-integer @@ -0,0 +1,25 @@ +# +# PRE: update if +# +update { + control:Cleartext-Password := 'hello' + request:Class := 0x00000101 +} + +if (Class == 257) { + update reply { + Filter-Id := "filter" + } +} + +if (Class < 256) { + update reply { + Filter-Id += "wrong" + } +} + +if (Class > 257) { + update reply { + Filter-Id += "wrong" + } +} -- cgit v1.2.3