import static org.junit.Assert.*;

import org.junit.Test;


public class AddFractionsTest {
	
	@Test
	public void zeroPlusZero() throws Exception {
		Fraction sum = new Fraction(0).plus(new Fraction(0));
		assertEquals(0, sum.intValue());
	}
	
	@Test
	public void nonZeroPlusZero() throws Exception {
		Fraction sum = new Fraction(3).plus(new Fraction(0));
		assertEquals(3, sum.intValue());
	}
	
	@Test
	public void zeroPlusNonZero() throws Exception {
		Fraction sum = new Fraction(0).plus(new Fraction(5));
		assertEquals(5, sum.intValue());
	}
	
	@Test
	public void nonNegativeNonZeroOperands() throws Exception {
		Fraction sum = new Fraction(3).plus(new Fraction(4));
		assertEquals(7, sum.intValue());
	}
}

@@ -705,10 +705,180 @@
 ());%0A%09%7D%0A
+%09%0A%09@Test%0A%09public void negativeInputAndNegativeOutput() throws Exception %7B%0A%09%09Fraction sum = new Fraction(-3).plus(new Fraction(1));%0A%09%09assertEquals(-2, sum.intValue());%0A%09%7D%0A
 %7D%0A

add negative integers sum