Metric Converter Tests Fail

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.

1 Like

We need to see your code in order to help you debug it.

When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).