contain

The word .contain takes one value, expected to appear in the range on the left hand side.

  1. void contain(Should should, T expected, Fence _, string file, size_t line)
    void
    contain
    (
    Should
    T
    )
    (
    Should should
    ,,
    Fence _ = Fence()
    ,
    string file = __FILE__
    ,
    size_t line = __LINE__
    )
    if (
    isInstanceOf!(ShouldType, Should)
    )
  2. auto contain(Should should)

Examples

[2, 3, 4].should.contain(3);
[2, 3, 4].should.not.contain(5);

Meta