cppyabm  1.0.17
An agent-based library to integrate C++ and Python
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_generalized_iterators ()
 
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 ()
 

Function Documentation

◆ allclose()

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

Definition at line 12 of file test_sequences_and_iterators.py.

◆ 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 7 of file test_sequences_and_iterators.py.

◆ test_generalized_iterators()

def test_sequences_and_iterators.test_generalized_iterators ( )

Definition at line 18 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 181 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 189 of file test_sequences_and_iterators.py.

◆ test_map_iterator()

def test_sequences_and_iterators.test_map_iterator ( )

Definition at line 126 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 149 of file test_sequences_and_iterators.py.

◆ test_sequence()

def test_sequences_and_iterators.test_sequence ( )

Definition at line 52 of file test_sequences_and_iterators.py.

◆ test_sequence_length()

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

Definition at line 106 of file test_sequences_and_iterators.py.

◆ test_sliceable()

def test_sequences_and_iterators.test_sliceable ( )

Definition at line 39 of file test_sequences_and_iterators.py.