aurorafw ~master (2020-10-29T20:10:48Z)
Dub
Repo
assertExistsInArray
aurorafw
unit
assertion
Asserts that the item exists inside the given array
void
assertExistsInArray
(T haystack, U needle, string msg, string file, size_t line)
@
safe
pure
void
assertExistsInArray
(
T
U
)
(
T
haystack
,
U
needle
,
lazy
string
msg
= null
,
string
file
= __FILE__
,
size_t
line
= __LINE__
)
if
(
isArray
!
T
&&
is
(
typeof
(
haystack.front
==
needle
||
is
(
T
==
void
[])
))
)
void
assertExists
(T[] haystack, T needle, string msg, string file, size_t line)
Throws
AssertException otherwise
Meta
Source
See Implementation
aurorafw
unit
assertion
aliases
assertGreaterThan
assertGreaterThanOrEqual
assertIn
assertLessThan
assertLessThanOrEqual
assertNotIn
classes
AssertAllException
AssertException
functions
assertAll
assertArrayEquals
assertAssocArrayEquals
assertContains
assertEmpty
assertEquals
assertEventually
assertExists
assertExistsInArray
assertFalse
assertNotEmpty
assertNotNull
assertNotSame
assertNull
assertRangeEquals
assertSame
assertTrue
description
diff
expectThrows
fail
templates
assertOp
Asserts that the item exists inside the given array