Sha256: 03989d8ee676650f70df3e567f04278446c609a538ba75eba3a75ec26e7e83d9

Contents?: true

Size: 1.22 KB

Versions: 1

Compression:

Stored size: 1.22 KB

Contents

@numerology
Feature: Formatting a number
  In order to format numbers
  the format_like method
  formats a number with a human readable example.

  @integer
  Scenario Outline: Format integers by example
    Given the integer "<value>"
    When I format using the example "<example>"
    Then I produce "<output>"

    Examples:
      | value              | example            | output             |
      | 123456             | 1,111              | 123,456            |
      | 123456             | 1.111              | 123.456            |
      | 123456             | 1 111              | 123 456            |
      | 1234567            | 1,111              | 1,234,567          |
      | 1234567            | 1.111              | 1.234.567          |
      | 1234               | 01111              | 01234              |
      | 123                | 01111              | 00123              |
      | 12                 | 01111              | 00012              |
      | 12345              | 01111              | 12345              |
      | 12345              | 01,111             | 12,345             |
      | 1234               | 01,111             | 01,234             |
      | 123                | 01,111             | 00,123             |

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
numerology-0.0.2 features/numerology.feature