Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::test_helpers Namespace Reference

Functions

void expect_array_eq (const Array< size_t > &a, std::initializer_list< size_t > expected)
 Assert that an Aleph::Array contains exactly the elements in an initializer_list.
 

Function Documentation

◆ expect_array_eq()

void Aleph::test_helpers::expect_array_eq ( const Array< size_t > &  a,
std::initializer_list< size_t >  expected 
)
inline

Assert that an Aleph::Array contains exactly the elements in an initializer_list.

Performs equality checks between each element of the array and the corresponding element in the expected list.

Parameters
[in]aThe Aleph::Array to check.
[in]expectedInitializer list of expected values.

Definition at line 52 of file test_helpers.H.

References Aleph::divide_and_conquer_partition_dp(), and Aleph::Array< T >::size().

Referenced by TEST(), TEST(), TEST(), TEST(), TEST(), and TEST().