Examples of toKelvin()


Examples of edu.ucsd.cs110w.temperature.Celsius.toKelvin()

    assertEquals(212, convert.getValue(), delta);
  }
 
  public void testCelsiusToKelvin() {
    Celsius temp = new Celsius(0);
    Temperature convert = temp.toKelvin();
    assertEquals(273, convert.getValue(), delta);
    temp = new Celsius(100);
    convert = temp.toKelvin();
   
    assertEquals(373, convert.getValue(), delta);
View Full Code Here

Examples of edu.ucsd.cs110w.temperature.Celsius.toKelvin()

  public void testCelsiusToKelvin() {
    Celsius temp = new Celsius(0);
    Temperature convert = temp.toKelvin();
    assertEquals(273, convert.getValue(), delta);
    temp = new Celsius(100);
    convert = temp.toKelvin();
   
    assertEquals(373, convert.getValue(), delta);
  }
}
View Full Code Here

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

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

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

  public void testFahrenheitToKelvin(){
    Fahrenheit temp = new Fahrenheit(32);
    Temperature convert = temp.toKelvin();
    assertEquals(273, convert.getValue(), delta);
    temp = new Fahrenheit(212);
    convert = temp.toKelvin();
   
    assertEquals(373, convert.getValue(), delta);
  }
 
 
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.