Some types in the spec seem off: * `INARRAY(<value> val, <varname> var)` => `INARRAY(<expr> val, <varname> var)` * `FLOATP(<expr> min, <expr> max, <expr> mindecimals, <expr> maxdecimals, [, <variable> name [, option]])`
Activity
[-]INARRAY arguments[/-][+]SPEC[/+][-]SPEC[/-][+]spec questions[/+]eldering commentedon Mar 14, 2026
Indeed,
INARRAYaccepts an expression as first argument: https://github.com/DOMjudge/checktestdata/blob/main/libchecktestdata.cc#L611And
FLOATPallows expressions for {min,max}decimals indeed, although they must be of integer type and in range [0, INT_MAX], see https://github.com/DOMjudge/checktestdata/blob/main/libchecktestdata.cc#L848-L863