Package edu.ucsd.cs110w.temperature

Examples of edu.ucsd.cs110w.temperature.Fahrenheit.toCelsius()


    Temperature convert = temp.toFahrenheit();
    assertEquals(0, convert.getValue(), delta);
  }
  public void testFahrenheitToCelsius(){
    Fahrenheit temp = new Fahrenheit(32);
    Temperature convert = temp.toCelsius();
    assertEquals(0, convert.getValue(), delta);
    temp = new Fahrenheit(212);
    convert = temp.toCelsius();
   
    assertEquals(100, convert.getValue(), delta);
View Full Code Here


  public void testFahrenheitToCelsius(){
    Fahrenheit temp = new Fahrenheit(32);
    Temperature convert = temp.toCelsius();
    assertEquals(0, convert.getValue(), delta);
    temp = new Fahrenheit(212);
    convert = temp.toCelsius();
   
    assertEquals(100, convert.getValue(), delta);
  }
 
  public void testFahrenheitToKelvin(){
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.