From: Nick Porter Date: Thu, 24 Jul 2025 11:32:36 +0000 (+0100) Subject: Add basic test of map list X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c0960153e3ac23d60a9d1a3a87e25e51be80e81d;p=thirdparty%2Ffreeradius-server.git Add basic test of map list --- diff --git a/src/tests/keywords/map-list b/src/tests/keywords/map-list new file mode 100644 index 0000000000..2b2be61ac8 --- /dev/null +++ b/src/tests/keywords/map-list @@ -0,0 +1,17 @@ +string result0 +string result1 +string result2 +string result3 + +map list %str.split('one two three', ' ') { + result0 := 0 + result1 := 1 + result2 := 2 + result3 := 3 +} + +if ((result0 != 'one') || (result1 != 'two') || (result2 != 'three') || result3) { + test_fail +} + +success