<commit_before>Feature: Numeric constraints
  Scenario: Number must be divisible by some factor
    Given the following JSON schema:
      """json
      {
        "$schema": "http://json-schema.org/draft-04/schema#",
        "type": "object",
        "properties": {
          "widgets": {
            "type": "integer",
            "multipleOf": 2
          }
        }
      }
      """
    When I run the JSON data generator
    Then the JSON output should be:
      """json
      {"widgets":2}
      """

  Scenario: Number has a maximum value
    Given the following JSON schema:
      """json
      {
        "$schema": "http://json-schema.org/draft-04/schema#",
        "type": "object",
        "properties": {
          "proportion": {
            "type": "number",
            "maximum": 0.25
          }
        }
      }
      """
    When I run the JSON data generator
    Then the JSON output should be:
      """json
      {"proportion":0.0}
      """

  Scenario: Number has a minimum value
    Given the following JSON schema:
      """json
      {
        "$schema": "http://json-schema.org/draft-04/schema#",
        "type": "object",
        "properties": {
          "quantity": {
            "type": "integer",
            "minimum": 2
          }
        }
      }
      """
    When I run the JSON data generator
    Then the JSON output should be:
      """json
      {"quantity":2.5}
      """

  Scenario: Maximum and minimum
    Given the following JSON schema:
      """json
      {
        "$schema": "http://json-schema.org/draft-04/schema#",
        "type": "object",
        "properties": {
          "proportion": {
            "type": "number",
            "maximum": 1,
            "minimum": 0,
            "exclusiveMinimum": true
          }
        }
      }
      """
    When I run the JSON data generator
    Then the JSON output should be:
      """json
      {"proportion":0.5}
      """

  Scenario: Multiple with minimum
    Given the following JSON schema:
      """json
      {
        "$schema": "http://json-schema.org/draft-04/schema#",
        "type": "object",
        "properties": {
          "wheels": {
            "type": "number",
            "multipleOf": 4,
            "minimum": 5
          }<commit_msg>Change expected values to match new behavior<commit_after>Feature: Numeric constraints
  Scenario: Number must be divisible by some factor
    Given the following JSON schema:
      """json
      {
        "$schema": "http://json-schema.org/draft-04/schema#",
        "type": "object",
        "properties": {
          "widgets": {
            "type": "integer",
            "multipleOf": 2
          }
        }
      }
      """
    When I run the JSON data generator
    Then the JSON output should be:
      """json
      {"widgets":2}
      """

  Scenario: Number has a maximum value
    Given the following JSON schema:
      """json
      {
        "$schema": "http://json-schema.org/draft-04/schema#",
        "type": "object",
        "properties": {
          "proportion": {
            "type": "number",
            "maximum": 0.25
          }
        }
      }
      """
    When I run the JSON data generator
    Then the JSON output should be:
      """json
      {"proportion":0.0}
      """

  Scenario: Number has a minimum value
    Given the following JSON schema:
      """json
      {
        "$schema": "http://json-schema.org/draft-04/schema#",
        "type": "object",
        "properties": {
          "quantity": {
            "type": "integer",
            "minimum": 2
          }
        }
      }
      """
    When I run the JSON data generator
    Then the JSON output should be:
      """json
      {"quantity":2.5}
      """

  Scenario: Maximum and minimum
    Given the following JSON schema:
      """json
      {
        "$schema": "http://json-schema.org/draft-04/schema#",
        "type": "object",
        "properties": {
          "proportion": {
            "type": "number",
            "maximum": 1,
            "minimum": 0,
            "exclusiveMinimum": true
          }
        }
      }
      """
    When I run the JSON data generator
    Then the JSON output should be:
      """json
      {"proportion":0.83}
      """

  Scenario: Multiple with minimum
    Given the following JSON schema:
      """json
      {
        "$schema": "http://json-schema.org/draft-04/schema#",
        "type": "object",
        "properties": {
          "wheels": {
            "type": "number",
            "multipleOf": 4,
            "minimum": 5
          }
{'fraction_non_alphanumeric': 0.13922942206654992, 'fraction_numerical': 0.011602451838879159, 'mean_word_length': 1.5145844799119428, 'pattern_counts': {'":': 74, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5199402', 'n_tokens_mistral': 1332, 'n_tokens_neox': 1265, 'n_words': 360}