From: Arran Cudbard-Bell Date: Wed, 22 May 2024 17:41:45 +0000 (-0400) Subject: Add test for 'zero' index in substr X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb3cd051b5b1e1c9781ff5373b4e5be2f4405ed4;p=thirdparty%2Ffreeradius-server.git Add test for 'zero' index in substr --- diff --git a/src/tests/keywords/substr b/src/tests/keywords/substr index f060f97482e..69a12cd11d7 100644 --- a/src/tests/keywords/substr +++ b/src/tests/keywords/substr @@ -13,6 +13,10 @@ if !(%substr(%{test_string}, 1, 3) == 'ell') { test_fail } +if !(%substr(%{test_string}, 0, 3) == 'hel') { + test_fail +} + if !(%substr(%{test_string}, 5) == ' world') { test_fail }