Sha256: 5be531d174a244e6b4b15482df9e79fca384494a7c9965e6d608a129d7175ff5

Contents?: true

Size: 1.5 KB

Versions: 1

Compression:

Stored size: 1.5 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             |
      | 123                | 100                | 100                |
      | 12345              | 11000              | 12000              |
      | 12345              | 11,000             | 12,000             |
      | 15555              | 11,000             | 16,000             |

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
numerology-0.0.3 features/numerology.feature