assertExists

Asserts that the item exists inside the given array

  1. void assertExists(T[] haystack, T needle, string msg, string file, size_t line)
    @safe pure
    void
    assertExists
    (
    T
    )
    (
    in T[] haystack
    ,,
    lazy string msg = null
    ,
    string file = __FILE__
    ,
    size_t line = __LINE__
    )
  2. void assertExists(T[len] haystack, T needle, string msg, string file, size_t line)
  3. void assertExists(R haystack, T needle, string msg, string file, size_t line)
  4. void assertExistsInArray(T haystack, U needle, string msg, string file, size_t line)

Throws

AssertException otherwise

Meta