Sha256: b9785902902220fea96764cc29ff87ed27fee78b98ec789c98a6524cb732247b

Contents?: true

Size: 619 Bytes

Versions: 4

Compression:

Stored size: 619 Bytes

Contents

FancySpec describe: Tuple with: {
  it: "have the correct amount of elements" for: 'size when: {
    (1,2) size should == 2
    (1,2,3) size should == 3
    ('foo, "bar", 'baz, 123) size should == 4
  }

  it: "should have the correct items at a given index" for: 'at: when: {
    tuple = ("foo", 'bar, "baz")
    tuple at: 0 . should == "foo"
    tuple at: 1 . should == 'bar
    tuple at: 2 . should == "baz"
  }

  it: "should have the correct items at a given index" for: '[] when: {
    tuple = ("foo", 'bar, "baz")
    tuple[0] . should == "foo"
    tuple[1] . should == 'bar
    tuple[2] . should == "baz"
  }
}

Version data entries

4 entries across 4 versions & 1 rubygems

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