Oct-23-2022, 10:54 PM
(Oct-23-2022, 07:01 AM)ndc85430 Wrote: but all those tests do is check that no exception is thrown by the functions.indeed, those would be poor tests. poor, at a minimum. or possibly outright wrong.
the test for celcius_to_fahrenheit() certainly must not raise an exception for valid cases. but it must also perform the correct calculations in all the value types intended to be supported which should include all non-complex numeric types that can represent temperature.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.