src/textgen/MyLinkedListTester.java
@Test
	public void testAddAtIndex()
	{
    list1.add(0,46);

    int a= list1.get(0);
    assertEquals("Add: check if 46 is added in the index 0 and it replaces 65 at index 0 ", 46, a);

    try {
        list1.add(-1,47);
        fail("Check out of bounds");
    }
    catch (IndexOutOfBoundsException e)
    {}
        try {
            list1.add(2,null);
            fail("Check null");
        }
        catch (NullPointerException e)
        {}

    list1.add(1,47);
    int b= list1.get(0);
    assertEquals("Add: check if 47 is added in the index 0 and it replaces 21 at index 1 ", 46, b);

        try {
            list1.add(6,47);
            fail("Check out of bounds");
        }
        catch (IndexOutOfBoundsException e)
        {}



        // TODO: implement this test(DONE)
		
	}
/** Test adding an element into the list at a specified index,
	 * specifically:
	 * public void add(int index, E element)
	 * */
Test adding an element into the list at a specified index,
specifically:
public void add(int index, E element)
Test adding an element into the list at a specified index specifically : public void add ( int index E element )
@Test
	public void testAddAtIndex()
	{
    list1.add(0,46);
    int a= list1.get(0);
    assertEquals("Add: check if 46 is added in the index 0 and it replaces 65 at index 0 ", 46, a);
    try {
        list1.add(-1,47);
        fail("Check out of bounds");
    }
    catch (IndexOutOfBoundsException e)
    {}
        try {
            list1.add(2,null);
            fail("Check null");
        }
        catch (NullPointerException e)
        {}
    list1.add(1,47);
    int b= list1.get(0);
    assertEquals("Add: check if 47 is added in the index 0 and it replaces 21 at index 1 ", 46, b);
        try {
            list1.add(6,47);
            fail("Check out of bounds");
        }
        catch (IndexOutOfBoundsException e)
        {}
	}
@ Test public void testAddAtIndex ( ) { list1 . add ( 0 , 46 ) ; int a = list1 . get ( 0 ) ; assertEquals ( "Add: check if 46 is added in the index 0 and it replaces 65 at index 0 " , 46 , a ) ; try { list1 . add ( - 1 , 47 ) ; fail ( "Check out of bounds" ) ; } catch ( IndexOutOfBoundsException e ) { } try { list1 . add ( 2 , null ) ; fail ( "Check null" ) ; } catch ( NullPointerException e ) { } list1 . add ( 1 , 47 ) ; int b = list1 . get ( 0 ) ; assertEquals ( "Add: check if 47 is added in the index 0 and it replaces 21 at index 1 " , 46 , b ) ; try { list1 . add ( 6 , 47 ) ; fail ( "Check out of bounds" ) ; } catch ( IndexOutOfBoundsException e ) { } }
Test adding an element into the list at a specified index,
 specifically:
 public void add(int index, E element)
Test adding an element into the list at a specified index specifically : public void add ( int index E element )
// TODO: implement this test(DONE)