co2Test function
- SampleData data
The test to determine the presence of life based on CO2 data. The max has to be greater than 10% greater than min for life to exist
Implementation
ScienceResult co2Test(SampleData data) => (data.max! >= (data.min! * 1.1))
? ScienceResult.extant : ScienceResult.notPresent;