assertEqual

Returns true if the actual value equals the expected value. Otherwise prints an error message and returns false.

  1. bool assertEqual(T actual, T expected, size_t index, string file, int line)
    bool
    assertEqual
    (
    T
    U : T
    )
    (
    in T actual
    ,,
    size_t index = -1
    ,
    string file = __FILE__
    ,
    int line = __LINE__
    )
  2. bool assertEqual(T actual, U expected, size_t index, string file, int line)

Meta