]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Add test for 'zero' index in substr
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 22 May 2024 17:41:45 +0000 (13:41 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 22 May 2024 17:41:45 +0000 (13:41 -0400)
src/tests/keywords/substr

index f060f97482e3edff0379dc791c4c8e1914a1ebd8..69a12cd11d7863a04fb4db9bd62230a6b9598e65 100644 (file)
@@ -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
 }