Created
July 31, 2024 14:22
-
-
Save SarahElson/90051c0631327d089acb8870afd5b498 to your computer and use it in GitHub Desktop.
How To Setup JUnit Environment For Your First Test
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
package com.lambdatest.junit; | |
public class Class1 { | |
public double conversion(double temparature, String unit){ | |
if(unit.equals("F")){ | |
return (temparature-32)*(5.0/9.0); | |
}else{ | |
return (temparature *(9.0/5.0))+32; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment