Skip to content

KaichenWang/temperature

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

  • title: Assignment 3
  • subtitle: Unit testing
  • due: 14 Oct, 2013
  • marks: 10 marks

  1. Fork the github repository

    https://github.com/mcgill-ecse321/temperature

  2. Complete the skeleton file TemperatureTest.java to unit test the Temperature class. You must test the following:

    1. Check the getUnits() and getValue() functions.

    2. Check the changeUnits() function for all six possible conversions between Celsius, Fahrenheit, and Kelvin.

    Explain your reasoning for choosing the particular test data. Note that you may have to choose multiple test data for each of the above test cases.

  3. While running the above test cases, if you find bugs in the Temeprature class, you are allowed to modify the Temperature class appropriately.

  4. Tag your final code with tag assignment-2 and submit the Git URL of your repository. Your rationale for choosing the test data should be described in the code comments.

About

Temperature class for Assignment 2

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%