μHAL (v2.8.17)
Part of the IPbus software repository
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Functions
test_sequences_and_iterators Namespace Reference

Functions

def isclose (a, b, rel_tol=1e-05, abs_tol=0.0)
 
def allclose (a_list, b_list, rel_tol=1e-05, abs_tol=0.0)
 
def test_slice_constructors ()
 
def test_slice_constructors_explicit_optional ()
 
def test_generalized_iterators ()
 
def test_nonref_iterators ()
 
def test_generalized_iterators_simple ()
 
def test_iterator_referencing ()
 
def test_sliceable ()
 
def test_sequence ()
 
def test_sequence_length ()
 
def test_map_iterator ()
 
def test_python_iterator_in_cpp ()
 
def test_iterator_passthrough ()
 
def test_iterator_rvp ()
 
def test_carray_iterator ()
 

Function Documentation

◆ allclose()

def test_sequences_and_iterators.allclose (   a_list,
  b_list,
  rel_tol = 1e-05,
  abs_tol = 0.0 
)

Definition at line 13 of file test_sequences_and_iterators.py.

References isclose().

Referenced by test_sequence().

◆ isclose()

def test_sequences_and_iterators.isclose (   a,
  b,
  rel_tol = 1e-05,
  abs_tol = 0.0 
)
Like math.isclose() from Python 3.5

Definition at line 8 of file test_sequences_and_iterators.py.

References abs().

Referenced by allclose(), and test_sequence().

◆ test_carray_iterator()

def test_sequences_and_iterators.test_carray_iterator ( )
#4100: Check for proper iterator overload with C-Arrays

Definition at line 246 of file test_sequences_and_iterators.py.

◆ test_generalized_iterators()

def test_sequences_and_iterators.test_generalized_iterators ( )

Definition at line 30 of file test_sequences_and_iterators.py.

◆ test_generalized_iterators_simple()

def test_sequences_and_iterators.test_generalized_iterators_simple ( )

Definition at line 62 of file test_sequences_and_iterators.py.

◆ test_iterator_passthrough()

def test_sequences_and_iterators.test_iterator_passthrough ( )
#181: iterator passthrough did not compile

Definition at line 239 of file test_sequences_and_iterators.py.

References iter().

◆ test_iterator_referencing()

def test_sequences_and_iterators.test_iterator_referencing ( )
Test that iterators reference rather than copy their referents.

Definition at line 72 of file test_sequences_and_iterators.py.

◆ test_iterator_rvp()

def test_sequences_and_iterators.test_iterator_rvp ( )
#388: Can't make iterators via make_iterator() with different r/v policies

Definition at line 247 of file test_sequences_and_iterators.py.

References isinstance().

◆ test_map_iterator()

def test_sequences_and_iterators.test_map_iterator ( )

Definition at line 183 of file test_sequences_and_iterators.py.

References iter(), and len().

◆ test_nonref_iterators()

def test_sequences_and_iterators.test_nonref_iterators ( )

Definition at line 55 of file test_sequences_and_iterators.py.

◆ test_python_iterator_in_cpp()

def test_sequences_and_iterators.test_python_iterator_in_cpp ( )

Definition at line 207 of file test_sequences_and_iterators.py.

References iter().

◆ test_sequence()

def test_sequences_and_iterators.test_sequence ( )

◆ test_sequence_length()

def test_sequences_and_iterators.test_sequence_length ( )
#2076: Exception raised by len(arg) should be propagated

Definition at line 163 of file test_sequences_and_iterators.py.

◆ test_slice_constructors()

def test_sequences_and_iterators.test_slice_constructors ( )

Definition at line 19 of file test_sequences_and_iterators.py.

◆ test_slice_constructors_explicit_optional()

def test_sequences_and_iterators.test_slice_constructors_explicit_optional ( )

Definition at line 25 of file test_sequences_and_iterators.py.

◆ test_sliceable()

def test_sequences_and_iterators.test_sliceable ( )

Definition at line 96 of file test_sequences_and_iterators.py.