@@ -132,7 +132,6 @@ mod thermo_tests {
132132 use uom:: si:: thermodynamic_temperature:: kelvin;
133133
134134 #[ test]
135- #[ allow( dead_code) ]
136135 fn test_create_thermo_state ( ) {
137136 // Create some test data for ThermoMoleFrac (mole fractions)
138137 let water = Chemical {
@@ -160,7 +159,9 @@ mod thermo_tests {
160159 // Validate ThermoState
161160 assert_eq ! ( thermo_state. pressure. get:: <pascal>( ) , 101325.0 ) ;
162161 assert_eq ! ( thermo_state. temperature. get:: <kelvin>( ) , 298.15 ) ;
163- assert_eq ! ( thermo_state. mass_list. len( ) , 1 ) ; // Should contain one mole fraction entry
162+ assert_eq ! ( thermo_state. mass_list. len( ) , 1 ) ; // Should contain one mole fraction entry
163+
164+
164165
165166 // Check that the mole fraction's chemical is correctly set
166167 // assert_eq!(
@@ -207,15 +208,15 @@ mod thermo_tests {
207208 mass_quantity : anisidine_mass,
208209 } ;
209210
210- let _therm_obj = ThermoState :: new (
211+ let therm_obj = ThermoState :: new (
211212 101325.0 ,
212213 298.15 ,
213214 vec ! [ water_species_pair, anisidine_species_pair] ,
214215 ) ;
215216
216- // let mass_fraction = _therm_obj
217- // .mass_frac(&_therm_obj .mass_list[0].chemical_species)
218- // .unwrap();
217+ let mass_fraction = therm_obj
218+ . mass_frac ( & therm_obj . mass_list [ 0 ] . chemical_species )
219+ . unwrap ( ) ;
219220
220221 // assert!(
221222 // (mass_fraction - 0.2).abs() < 1e-6,
0 commit comments