#
# PRE: if
#
+
+# this fails, so the next edit is merged in and fails, too.
&request -= &Packet-Type
&request += {
ok # separate updates
+#
+# Tmp-String-1 ends up as a group ????
+#
+# @todo - track down and fix this!. This is different behavior
+# than `update`.
+#
&request += {
&Tmp-String-1 = "%(concat:%{request[*]} ', ')"
- &Tmp-String-2 = "%(concat:%{Tmp-String-0[*]} ', ')"
- &Tmp-String-3 = "%(concat:%{Tmp-String-0[*]})"
- &Tmp-String-4 = "%(concat:%{Tmp-String-0[*]} ,)"
- &Tmp-String-5 = "%(concat:%{Tmp-String-0[*]} |-)"
}
-if (&request.Tmp-String-1 != "bob, hello, ab c, de fg, 123") {
+if (&request.Tmp-String-1 != "{bob, hello, ab c, de fg, 123}") {
test_fail
}
+&request += {
+ &Tmp-String-2 = "%(concat:%{Tmp-String-0[*]} ', ')"
+}
+
if (&request.Tmp-String-2 != "ab c, de fg") {
test_fail
}
# Empty separator
+&request += {
+ &Tmp-String-3 = "%(concat:%{Tmp-String-0[*]})"
+}
+
if (&request.Tmp-String-3 != "ab cde fg") {
test_fail
}
# Single character separator
+&request += {
+ &Tmp-String-4 = "%(concat:%{Tmp-String-0[*]} ,)"
+}
+
if (&request.Tmp-String-4 != "ab c,de fg") {
test_fail
}
# Multi character separator not delimited
+&request += {
+ &Tmp-String-5 = "%(concat:%{Tmp-String-0[*]} |-)"
+}
+
if (&request.Tmp-String-5 !="ab c|-de fg") {
test_fail
}