Commit 00a23bfd authored by michael lundquist's avatar michael lundquist
Browse files

Debugged one final test. Ready to puch and maybe submit?

parent 15425bbb
Pipeline #4118 passed with stage
in 1 minute and 21 seconds
......@@ -17,6 +17,7 @@ public class AppTest {
* Tests the stack peek function
*
* @author Michael Lundquist
* @see Stack#peek()
*/
@Test
public void testStackPeek(){
......@@ -33,9 +34,10 @@ public class AppTest {
/**
* Tests the stack peek function
* Tests the LinkedListStack peek function
*
* @author Michael Lundquist
* @see LinkedListStack#peek()
*/
@Test
public void test_LL_StackPeek(){
......@@ -50,9 +52,10 @@ public class AppTest {
}
/**
* Tests the stack peek function
* Makes sure Stack's search works
*
* @author Michael Lundquist
* @see Stack#search(Object)
*/
@Test
public void testStackSearch(){
......@@ -74,9 +77,10 @@ public class AppTest {
}
/**
* Tests the stack peek function
* Makes sure LinedlistStacke's search method works
*
* @author Michael Lundquist
* @see LinkedListStack#search(Object)
*/
@Test
public void test_LL_StackSearch(){
......@@ -97,8 +101,10 @@ public class AppTest {
}
/**
* Tests the stack peek function
* Makes sure ArrayStack's search method works
*
* @author Michael Lundquist
* @see ArrayStack#search(Object)
*/
@Test
public void testArrayStackSearch(){
......@@ -121,10 +127,10 @@ public class AppTest {
}
/**
* Tests the stack peek function to make sure it returns the right thing
* Makes sure the data returned from Queue.element is what I expect.
*
* @author Michael Lundquist
* @see ArrayStack
* @see Queue#element()
*/
@Test
public void testQueueElement(){
......@@ -177,15 +183,16 @@ public class AppTest {
}
/**
* Tests Application.isValid
* Tests Application.isValid against sample strings to ensure it
* properly validates brackets
*
* @see Application#isValid(char[])
* @author Michael Lundquist
*/
@Test
public void testIsValid(){
assertTrue(Application.isValid("[(4+5+1) x (4 / 2)]"));
assertFalse(Application.isValid("[(4+5+1) x (4 / 2]"));
assertTrue(Application.isValid("[(4+5+1) x (4 / 2)]".toCharArray()));
assertFalse(Application.isValid("[(4+5+1) x (4 / 2]".toCharArray()));
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment