Skip to content

Instantly share code, notes, and snippets.

@SarahElson
Created July 31, 2024 14:22
Show Gist options
  • Save SarahElson/90051c0631327d089acb8870afd5b498 to your computer and use it in GitHub Desktop.
Save SarahElson/90051c0631327d089acb8870afd5b498 to your computer and use it in GitHub Desktop.
How To Setup JUnit Environment For Your First Test
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