import org.junit.Test;
import static org.junit.Assert.*;

/**
 * @author Bryan Youse
 * Simple JUnit tests for the controller functions in lab 2
 */
public class TestCelsiusController {

	//  "@Test" before test function is needed by JUnit!
	@Test
	public void test_ctof() {
		//  assert that the two double args are equal (to accuracy specified in final arg)
		assertEquals(32, CelsiusController.celsiustofahrenheit(0), .001);
		
		//  if .2 degrees is an acceptable amount of error:
		assertEquals(32, CelsiusController.celsiustofahrenheit(0.1), .2);
		
		//  Line demonstrating failure.  Remove before submission.
		assertEquals(32, CelsiusController.celsiustofahrenheit(0.1), .1);
	}
	
	//  ADD TESTS FOR YOUR NEW CONVERSION FUNCTIONS
	//  (Do NOT include purposely failing tests as above)
	
}