assertExists

Asserts that a item exists inside the given static array

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

Throws

AssertException otherwise

Meta