be

The word .be() is a placeholder for .equal.

Note: Reference comparison is achieved with .be.same.as().

  1. void be(Should should, T expected, Fence _, string file, size_t line)
    void
    be
    (
    Should
    T
    )
    (
    Should should
    ,,
    Fence _ = Fence()
    ,
    string file = __FILE__
    ,
    size_t line = __LINE__
    )
    if (
    isInstanceOf!(ShouldType, Should) &&
    !should.hasWord!"approximately"
    &&
    !is(T == typeof(null))
    )
  2. void be(Should should, typeof(null) expected, Fence _, string file, size_t line)
  3. auto be(Should should)
  4. void be(Should should, T expected, ErrorValue error, Fence _, string file, size_t line)

Meta