Last active
June 7, 2017 12:57
-
-
Save bmorelli25/a3c42a08134968f8ad1c3e2f9001e2aa to your computer and use it in GitHub Desktop.
Mocha Testing - v1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cToF = function(celsius) { | |
if(!Number.isInteger(celsius)) return undefined; | |
return celsius * 9 / 5 + 32; | |
} | |
fToC = function(fahrenheit) { | |
if(!Number.isInteger(fahrenheit)) return undefined; | |
return (fahrenheit - 32) * 5 / 9; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment