I am working on the Metric Converter project and everything seems to work just fine. Every conversion works and gives me the desired output. However, when I paste my solution on the challenge’s page, four of them fail:
I can convert 'gal'
to 'L'
and vice versa. (1 gal to 3.78541 L)
I can convert 'lbs'
to 'kg'
and vice versa. (1 lbs to 0.453592 kg)
I can convert 'mi'
to 'km'
and vice versa. (1 mi to 1.60934 km)
If my unit of measurement is invalid, returned will be 'invalid unit'
The strange thing is all the tests pass on Repl.it.
I can’t seem to figure out what the issue is.
Kindly assist.