statebox / cql

CQL: Categorical Query Language implementation in Haskell
GNU Affero General Public License v3.0
162 stars 14 forks source link

Parser.identifier fails on special character #151

Open epost opened 4 years ago

epost commented 4 years ago
    Parser.Parser
      constant
        parses correctly a constant
          +++ OK, passed 100 tests.
      identifier
        parses correctly a string starting with a lowercase character
          +++ OK, passed 100 tests.
        parses correctly a string starting with an uppercase character
          +++ OK, passed 100 tests.
        parses correctly a string starting with a special character FAILED [1]
        does not parse a string starting with a digit
          +++ OK, passed 100 tests.
        does not parse a string starting with an illegal special character
          +++ OK, passed 100 tests.
        does not parse a reserved word
          +++ OK, passed 100 tests.
      boolParser
        parses correctly a false
        parses correctly a true

    Failures:

      test/Parser/ParserSpec.hs:45:5:
      1) Parser.Parser.identifier parses correctly a string starting with a special character
           Falsifiable (after 32 tests):
             "pi"

      To rerun use: --match "/Parser.Parser/identifier/parses correctly a string starting with a special character/"

    Randomized with seed 1191602091

    Finished in 8.0933 seconds
    16 examples, 1 failure