-
TestMatrix()-
__init__()- num_replicates <= 0
- ValueError('bad number of replicates')
- <0
- = 0
- ValueError('bad number of replicates')
- Non-iterable equivalence
- creates iterable (
len(self.equivalence)gives no error)
- creates iterable (
- Iterable equivalence with non-numeric
- TypeError('equivalence has non-numeric items')
- equivalence <= 0
- ValueError('equivalence <= 0')
- <0
- =0
- ValueError('equivalence <= 0')
- Non-iterable diluent_mole_fraction
- creates iterable (
len(self.diluent_mole_fraction)gives no error)
- creates iterable (
- Iterable diluent_mole_fraction with non-numeric
- TypeError('diluent_mole_fraction has non-numeric items')
- diluent_mole_fraction outside of [0, 1)
- bad
- ValueError('diluent mole fraction outside of [0, 1)')
- <0
- >1
- =1
- good
- =0
- =0.99
- bad
- num_replicates <= 0
-
_build_replicate()- compare output current_replicate to hand-calcs
- diluted
- undiluted
- compare output current_replicate to hand-calcs
-
generate_test_matrices()-
self.replicatescontains noNone - each replicate contains the same items
- each replicate is in a different order
-
-
save()- files write to disk as expected (delete)
-
-
calculate_laminar_flamespeed()- move tests from
test_tools.py
- move tests from
-
calculate_get_eq_sound_speed()- move tests from
test_tools.py
- move tests from
-
Mixture-
__init__()- no unit registry is given
- unit registry is given
- bad fuel
- ValueError('Bad fuel')
- bad oxidizer
- ValueError('Bad oxidizer')
- bad diluent
- ValueError('Bad diluent')
- diluent and mole fraction are given
-
self.diluted not None
-
- diluent and mole fraction not given
-
self.diluted is None
-
-
set_equivalence()- contains nothing very special, will get all branches run through as long as:
- successful
__init__without dilution - successful
__init__with dilution
- successful
- contains nothing very special, will get all branches run through as long as:
-
add_diluent()- bad diluent
- ValueError('Bad diluent: {}'.format(diluent))
- diluent is fuel or oxidizer
- ValueError('You can't dilute with fuel or oxidizer!')
- fuel
- oxidizer
- ValueError('You can't dilute with fuel or oxidizer!')
- mole fraction > 1
- ValueError('Bro, do you even mole fraction?')
- bad diluent
-
get_mass()- compare against hand calcs
- undiluted
- diluted
- compare against hand calcs
-
get_pressures()- compare against hand calcs
- undiluted
- diluted
- compare against hand calcs
-