// Tests for NumLinkedList's fundamental functions @Test public void testNumLinkedListConstructorAndToString() { NumLinkedList list = new NumLinkedList(); assertEquals( "With no parameters, your constructors should initialize an list size 0. " + "It also can be the problem in method TOSTRING.", "", list.toString()); }
@Test public void testNumLinkedListAddAndToString() { NumLinkedList list = new NumLinkedList(); list.add(1.0); list.add(3.0); list.add(2.0); assertEquals( "Add method should add element to the end of list each time. " + "It's also can be the problem in method TOSTRING.", "1.0 3.0 2.0", list.toString()); }