]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
we can copy immutable values, and the copy is mutable
authorAlan T. DeKok <aland@freeradius.org>
Sun, 20 Aug 2023 22:22:05 +0000 (18:22 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 20 Aug 2023 22:22:05 +0000 (18:22 -0400)
src/tests/keywords/immutable

index 8f5af3ca97ada47628fdd22e667fa3618422cd6a..bd21f1071a7ee925da0765ff03b5073045fe9fde 100644 (file)
@@ -39,4 +39,17 @@ if !(&NAS-Port == 1813) {
        test_fail
 }
 
+#
+#  We can copy the immutable value.  The copy is mutable.
+#
+&Tmp-Integer-0 := &NAS-Port
+if !(&Tmp-Integer-0 == 1813) {
+       test_fail
+}
+
+&Tmp-Integer-0 += 1
+if !(&Tmp-Integer-0 == 1814) {
+       test_fail
+}
+
 success