Sha256: 5682b8c3b6070fc69fafd5a3d86edbeba89f39e401088f7cbb2c81fe13a68f49

Contents?: true

Size: 466 Bytes

Versions: 3

Compression:

Stored size: 466 Bytes

Contents

FancySpec describe: Matchers with: {
  it: "matches with any value defined matching" when: {
    m = Matchers MatchAny new: 1 with: 2
    m === 0 is: false
    m === 1 is: true
    m === 2 is: true
    m === 3 is_not: true
  }

  it: "matches only with all values defined matching" when: {
    m = Matchers MatchAll new: Integer with: Fixnum
    m === -1 is: true
    m === 0 is: true
    m === 1 is: true
    m === 2.1 is_not: true
    m === 0.0 is_not: true
  }
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fancy-0.10.0 tests/matchers.fy
fancy-0.9.0 tests/matchers.fy
fancy-0.8.0 tests/matchers.fy