src/textgen/MyLinkedListTester.java
@Test
	public void testRemove()
	{
		int a = list1.remove(0);
		assertEquals("Remove: check a is correct ", 65, a);
		assertEquals("Remove: check element 0 is correct ", (Integer)21, list1.get(0));
		assertEquals("Remove: check size is correct ", 2, list1.size());
		int b=list1.get(0);
        assertEquals("Remove: check if 21 is the new element at 0 after removing 65 ", 21, b);
        try {
            shortList.remove(-7);
            fail("Check out of bounds");
        }
        catch (IndexOutOfBoundsException e) {

        }
        try {
            shortList.remove(8);
            fail("Check out of bounds");
        }
        catch (IndexOutOfBoundsException e) {

        }



		
		// TODO: Add more tests here (DONE)
	}
/** Test removing an element from the list.
	 * We've included the example from the concept challenge.
	 * You will want to add more tests.  */
Test removing an element from the list.
We've included the example from the concept challenge.
You will want to add more tests.
Test removing an element from the list . We ' ve included the example from the concept challenge . You will want to add more tests .
@Test
	public void testRemove()
	{
		int a = list1.remove(0);
		assertEquals("Remove: check a is correct ", 65, a);
		assertEquals("Remove: check element 0 is correct ", (Integer)21, list1.get(0));
		assertEquals("Remove: check size is correct ", 2, list1.size());
		int b=list1.get(0);
        assertEquals("Remove: check if 21 is the new element at 0 after removing 65 ", 21, b);
        try {
            shortList.remove(-7);
            fail("Check out of bounds");
        }
        catch (IndexOutOfBoundsException e) {
        }
        try {
            shortList.remove(8);
            fail("Check out of bounds");
        }
        catch (IndexOutOfBoundsException e) {
        }
	}
@ Test public void testRemove ( ) { int a = list1 . remove ( 0 ) ; assertEquals ( "Remove: check a is correct " , 65 , a ) ; assertEquals ( "Remove: check element 0 is correct " , ( Integer ) 21 , list1 . get ( 0 ) ) ; assertEquals ( "Remove: check size is correct " , 2 , list1 . size ( ) ) ; int b = list1 . get ( 0 ) ; assertEquals ( "Remove: check if 21 is the new element at 0 after removing 65 " , 21 , b ) ; try { shortList . remove ( - 7 ) ; fail ( "Check out of bounds" ) ; } catch ( IndexOutOfBoundsException e ) { } try { shortList . remove ( 8 ) ; fail ( "Check out of bounds" ) ; } catch ( IndexOutOfBoundsException e ) { } }
Test removing an element from the list.
Test removing an element from the list .
// TODO: Add more tests here (DONE)