greater

The word .greater tests that the left-hand side is greater than the expected value. It takes one parameter and terminates the phrase.

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

Examples

5.should.not.be.greater(6);
5.should.not.be.greater(5);
5.should.be.greater(4);

Meta