-&control.Tmp-String-0 := %ping(127.0.0.1)
+string test_string
+&test_string := %ping(127.0.0.1)
#
# @todo - conditions do not yet support YIELD
#
-if (&control.Tmp-String-0 == "yes") {
+if (&test_string == "yes") {
&control.Password.Cleartext := "hello"
&reply += {
+string test_string
#
# PRE: update if
#
-&Tmp-String-0 := "%idn('example.com')"
-&Tmp-String-1 := "%idn('èxâmpłé.com')"
-&Tmp-String-2 := "%idn('пример.com')"
-&Tmp-String-3 := "%idn('παράδειγμα.com')"
-&Tmp-String-4 := "%idn('ตัวอย่าง.com')"
-
-if (&Tmp-String-0 != "example.com") {
+&test_string := "%idn('example.com')"
+if (&test_string != "example.com") {
test_fail
}
-if (&Tmp-String-1 != "xn--xmp-ila2ak63d.com") {
+&test_string := "%idn('èxâmpłé.com')"
+if (&test_string != "xn--xmp-ila2ak63d.com") {
test_fail
}
-if (&Tmp-String-2 != "xn--e1afmkfd.com") {
+&test_string := "%idn('пример.com')"
+if (&test_string != "xn--e1afmkfd.com") {
test_fail
}
-if (&Tmp-String-3 != "xn--hxajbheg2az3al.com") {
+&test_string := "%idn('παράδειγμα.com')"
+if (&test_string != "xn--hxajbheg2az3al.com") {
test_fail
}
-if (&Tmp-String-4 != "xn--72c1a1bt4awk9o.com") {
+&test_string := "%idn('ตัวอย่าง.com')"
+if (&test_string != "xn--72c1a1bt4awk9o.com") {
test_fail
}
-&Tmp-String-0 := "%idn('invalid_example.com')"
+&test_string := "%idn('invalid_example.com')"
if (&Module-Failure-Message != "Non-digit/letter/hyphen in input") {
test_fail
&request -= &Module-Failure-Message[*]
-&Tmp-String-0 := "%idn('a.véry.löng.ņàme.whîch.when.expânded.exceedş.ţhe.dns.stanđard.fór.string.łength.of.twø.hündred.ând.fifty.threé.charáctèrs.and.therefore.is.invalid.for.idn.conversion')"
+&test_string := "%idn('a.véry.löng.ņàme.whîch.when.expânded.exceedş.ţhe.dns.stanđard.fór.string.łength.of.twø.hündred.ând.fifty.threé.charáctèrs.and.therefore.is.invalid.for.idn.conversion')"
if (&Module-Failure-Message != "Conversion was truncated") {
test_fail