Skip to content
This repository has been archived by the owner on Oct 30, 2023. It is now read-only.

fix: numeric constraints and range values are numeric #31

Merged
merged 3 commits into from
Mar 10, 2022

Commits on Feb 19, 2022

  1. fix: numeric constraints and range values are numeric

    * livescript is terse, but at least the numeric cast operator is a big plus
    * expr-value casts to numeric (do we expect dates or types other than string and numeric here?)
    * convert-question for type "range" casts min, max, step to numeric
    * no extensive testing done yet with different ranges and constraints
    * existing tests passing, no new tests added (coming next)
    * tested: numeric question with appearance slider > XLSForm > Central > Collect works
    * tested: numeric question with valid range > XLSForm > Central > Collect works
    Florian Mayer authored and Florian Mayer committed Feb 19, 2022
    Configuration menu
    Copy the full SHA
    283c7ef View commit details
    Browse the repository at this point in the history
  2. improve: add tests, ignore constraint type

    * Constraints work even if the values are strings
    * Add tests for range parameters given as string getting converted to int
    Florian Mayer authored and Florian Mayer committed Feb 19, 2022
    Configuration menu
    Copy the full SHA
    707f6d3 View commit details
    Browse the repository at this point in the history

Commits on Mar 10, 2022

  1. noop: drop trailing ws

    Florian Mayer authored and Florian Mayer committed Mar 10, 2022
    Configuration menu
    Copy the full SHA
    28caf35 View commit details
    Browse the repository at this point in the history