Sha256: 5efeb74e3d8419ed20f4e59fb62c91ff9119b7f609abba91b68798dc799efde7

Contents?: true

Size: 327 Bytes

Versions: 4

Compression:

Stored size: 327 Bytes

Contents

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

  it: "should have a working literal syntax" when: {
    (1..10) should == (Range new: 1 to: 10)
  }
}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fancy-0.3.3 tests/range.fy
fancy-0.3.2 tests/range.fy
fancy-0.3.1 tests/range.fy
fancy-0.3.0 tests/range.fy