# PRE: if edit
#
-&Tmp-String-0 := "%{expr:(<uint64>&Acct-Input-Gigawords << 32) | <uint64>&Acct-Input-Octets}"
+&Tmp-String-0 := "%{expr:((uint64)&Acct-Input-Gigawords << 32) | (uint64)&Acct-Input-Octets}"
if (!(&Tmp-String-0 == '')) {
test_fail
&Tmp-String-0 := "Hello world!"
-&Tmp-Octets-0 := "%{cipher_rsa.encrypt:%{Tmp-String-0}}"
+&Tmp-Octets-0 := "%cipher_rsa.encrypt(%{Tmp-String-0})"
if (!&Tmp-Octets-0) {
test_fail
test_pass
}
-if (<octets>&Tmp-String-0[0] == &Tmp-Octets-0[0]) {
+if ((octets)&Tmp-String-0[0] == &Tmp-Octets-0[0]) {
test_fail
}
else {
test_pass
}
-if (<octets>&Tmp-String-0[0] == &Tmp-Octets-0[0]) {
+if ((octets)&Tmp-String-0[0] == &Tmp-Octets-0[0]) {
test_fail
}
else {
test_fail
}
-if (<octets>&Tmp-String-0[0] == &Tmp-Octets-0[0]) {
+if ((octets)&Tmp-String-0[0] == &Tmp-Octets-0[0]) {
test_fail
}
test_fail
}
-if (<octets>&Tmp-String-0[0] == &Tmp-Octets-0[0]) {
+if ((octets)&Tmp-String-0[0] == &Tmp-Octets-0[0]) {
test_fail
}
-&Tmp-Date-0 := "%(cipher_rsa.certificate:notBefore)"
-&Tmp-Date-1 := "%(cipher_rsa.certificate:notAfter)"
+&Tmp-Date-0 := "%cipher_rsa.certificate(notBefore)"
+&Tmp-Date-1 := "%cipher_rsa.certificate(notAfter)"
# Check the cert validity period is 30 days
-if (<uint32>"%{expr:%(integer:%{Tmp-Date-1}) - %(integer:%{Tmp-Date-0})}" != <uint32>"%{expr:86400 * 60}") {
+if !((&Tmp-Date-1 - &Tmp-Date-0) == ((time_delta) (86400 * 60))) {
test_fail
} else {
test_pass
map json &Tmp-String-0 {
&Tmp-int64-0 := '$[0]'
}
-if !(&Tmp-int64-0 == <int64>9223372036854775807) {
+if !(&Tmp-int64-0 == (int64)9223372036854775807) {
test_fail
}