added line-break escaping
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-01-18 22:55:50 +08:00
parent b3f363c94f
commit f01c499832
7 changed files with 36 additions and 12 deletions

View File

@ -7,20 +7,20 @@ set t (
set X t;
if (nqv? t X) { printf "ERROR: t must point to X\n" }
if (nqv? t X) { printf "ERROR: t must point to X\n" } \
else { printf "OK: t points to X\n" };
set t ((t:make):get-x);
if (nqv? t 1234) { printf "ERROR: t must be 1234\n" }
if (nqv? t 1234) { printf "ERROR: t must be 1234\n" } \
else { printf "OK: t is %d\n" t };
set j #{ ((X:make):get-x): 9999, 4512: ((X: make): get-x) };
set v (dic.get j 1234);
if (nqv? v 9999) { printf "ERROR: v is not 9999\n" }
if (nqv? v 9999) { printf "ERROR: v is not 9999\n" } \
else { printf "OK: value is %d\n" v };
set v (dic.get j 4512);
if (nqv? v 1234) { printf "ERROR: v is not 1234\n" }
if (nqv? v 1234) { printf "ERROR: v is not 1234\n" } \
else { printf "OK: value is %d\n" v };