Sha256: 3b6817e137763309cb95f4eb3097a5656737e721bda11cf403c9a42aa3b7f482

Contents?: true

Size: 573 Bytes

Versions: 6

Compression:

Stored size: 573 Bytes

Contents

Feature: Core schema: minLength & maxLength

  Scenario: minLength
    When the schema is '{ "minLength": 3 }'
    Then '"foo"' is valid JSON
    And '"quux"' is valid JSON
    But '"aa"' is not valid JSON

  Scenario: maxLength
    When the schema is '{ "maxLength": 3 }'
    Then '"aa"' is valid JSON
    And '"foo"' is valid JSON
    But '"quux"' is not valid JSON

  Scenario: together
    When the schema is '{ "minLength": 1, "maxLength": 2 }'
    Then '"a"' is valid JSON
    And '"aa"' is valid JSON
    But '"aaa"' is not valid JSON
    And '""' is not valid JSON

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
jschematic-0.1.0 features/min_length_max_length.feature
jschematic-0.0.9 features/min_length_max_length.feature
jschematic-0.0.6 features/min_length_max_length.feature
jschematic-0.0.5 features/min_length_max_length.feature
jschematic-0.0.2 features/min_length_max_length.feature
jschematic-0.0.1 features/min_length_max_length.feature