<commit_before>/**
 * 
 */
package edu.harvard.cscie71.hw1;

import static org.junit.Assert.*;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

/**
 * @author eborysko
 *
 */
public class TestHW1 {
	
	HW1 tester;

	/**
	 * @throws java.lang.Exception
	 */
	@Before
	public void setUp() throws Exception {
		
		tester = new HW1();
		
	}

	/**
	 * @throws java.lang.Exception
	 */
	@After
	public void tearDown() throws Exception {
		
		tester = null;
	}

	/**
	 * Test method for {@link edu.harvard.cscie71.hw1.HW1#sum(int, int)}.
	 */
	@Test
	public void testSumIntInt() {
		//fail("Not yet implemented");
		
		assertEquals("0 + 0 = 0", 0, tester.sum(0, 0) );
		assertEquals("1 + 0 = 1", 1, tester.sum(1, 0) );
		assertEquals("2 + 1 = 3", 3, tester.sum(2, 1) );
		assertEquals("4 + 3 = 7", 7, tester.sum(4, 3) );
		
		assertEquals("4 + -7 = -3", -3, tester.sum(4, -7) );
	}

	/**
	 * Test method for {@link edu.harvard.cscie71.hw1.HW1#sum(java.lang.Integer, java.lang.Integer)}.
	 */
	@Test
	public void testSumIntegerInteger() {
		//fail("Not yet implemented");
		//Integer x,y;
		//x = null;
		//y = null;
		
		//assertEquals("0 + null = 0", 0, tester.sum(new Integer(0), y ));
		//assertEquals("null + 0 = 0", 0, tester.sum( x, new Integer(0)) );
		<commit_msg>Clean up old comments<commit_after>/**
 * 
 */
package edu.harvard.cscie71.hw1;

import static org.junit.Assert.*;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

/**
 * @author eborysko
 *
 */
public class TestHW1 {
	
	HW1 tester;

	/**
	 * @throws java.lang.Exception
	 */
	@Before
	public void setUp() throws Exception {
		
		tester = new HW1();
		
	}

	/**
	 * @throws java.lang.Exception
	 */
	@After
	public void tearDown() throws Exception {
		
		tester = null;
	}

	/**
	 * Test method for {@link edu.harvard.cscie71.hw1.HW1#sum(int, int)}.
	 */
	@Test
	public void testSumIntInt() {
		
		assertEquals("0 + 0 = 0", 0, tester.sum(0, 0) );
		assertEquals("1 + 0 = 1", 1, tester.sum(1, 0) );
		assertEquals("2 + 1 = 3", 3, tester.sum(2, 1) );
		assertEquals("4 + 3 = 7", 7, tester.sum(4, 3) );
		
		assertEquals("4 + -7 = -3", -3, tester.sum(4, -7) );
	}

	/**
	 * Test method for {@link edu.harvard.cscie71.hw1.HW1#sum(java.lang.Integer, java.lang.Integer)}.
	 */
	@Test
	public void testSumIntegerInteger() {
{'fraction_non_alphanumeric': 0.18798283261802576, 'fraction_numerical': 0.041201716738197426, 'mean_word_length': 2.930860033726813, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4671978', 'n_tokens_mistral': 1018, 'n_tokens_neox': 877, 'n_words': 210}