Sha256: 359a58066df10461bb55e5099393ad720c5b2e17a4de80af2bf90249b4dfacdd

Contents?: true

Size: 295 Bytes

Versions: 6

Compression:

Stored size: 295 Bytes

Contents

FancySpec describe: Range with: {
  it: "has the correct amount of elements" with: 'size when: {
    Range new: 1 to: 10 . to_a size is: 10
    (1..10) to_a size is: 10
    ("a".."z") to_a size is: 26
  }

  it: "has a working literal syntax" when: {
    (1..10) is: (Range new: 1 to: 10)
  }
}

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
fancy-0.9.0 tests/range.fy
fancy-0.8.0 tests/range.fy
fancy-0.7.0 tests/range.fy
fancy-0.6.0 tests/range.fy
fancy-0.5.0 tests/range.fy
fancy-0.4.0 tests/range.fy