Skip to content

spec questions #30

Open
Open

Description

@mzuenni

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

  1. changed the title [-]INARRAY arguments[/-] [+]SPEC[/+] on Mar 9, 2026
  2. changed the title [-]SPEC[/-] [+]spec questions[/+] on Mar 9, 2026
  3. eldering commented on Mar 14, 2026

    @eldering
    Member

    Indeed, INARRAY accepts an expression as first argument: https://github.com/DOMjudge/checktestdata/blob/main/libchecktestdata.cc#L611

    And FLOATP allows 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions