Rabbit Escape  2017-01-14_18:33:47_+0000__(tag:_v0.10.1)
Public Member Functions | List of all members
rabbitescape.engine.util.TestMathUtil Class Reference

Public Member Functions

void sum_a_set ()
 
void sum_empty_list ()
 
void min_works ()
 
void max_works ()
 
void constrain_works ()
 
void constrain_with_min_and_max_wrong ()
 

Member Function Documentation

void rabbitescape.engine.util.TestMathUtil.constrain_with_min_and_max_wrong ( )

If MathUtil#constrain is called with min larger than max the output is undefined. Since this is such a low level utility it seems wrong to validate that the min is not more than the max, so here we confirm the current behaviour. If new behaviour is desired in the future this test can be updated.

void rabbitescape.engine.util.TestMathUtil.constrain_works ( )
void rabbitescape.engine.util.TestMathUtil.max_works ( )
void rabbitescape.engine.util.TestMathUtil.min_works ( )
void rabbitescape.engine.util.TestMathUtil.sum_a_set ( )
void rabbitescape.engine.util.TestMathUtil.sum_empty_list ( )

The documentation for this class was generated from the following file: