summaryrefslogtreecommitdiff
path: root/keama/tests/concatnulldx4.in4
diff options
context:
space:
mode:
Diffstat (limited to 'keama/tests/concatnulldx4.in4')
-rw-r--r--keama/tests/concatnulldx4.in418
1 files changed, 18 insertions, 0 deletions
diff --git a/keama/tests/concatnulldx4.in4 b/keama/tests/concatnulldx4.in4
new file mode 100644
index 00000000..9b5e2a42
--- /dev/null
+++ b/keama/tests/concatnulldx4.in4
@@ -0,0 +1,18 @@
+# concat with null argument data expression
+
+# empty configs are not accepted by Kea
+default-lease-time 1800;
+
+# null left argument
+class "null-left" {
+ match concat("", suffix(option host-name, 3));
+}
+
+subclass "null-left" "com" { }
+
+# null right argument
+class "null-right" {
+ match concat(suffix(option host-name, 3), substring("foobar", 0, 0));
+}
+
+subclass "null-right" "org" { }