Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
306
306Ass5
Commits
00a23bfd
Commit
00a23bfd
authored
Mar 26, 2019
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
fifthassignment/src/test/java/com/ds/fifthassignment/AppTest.java
View file @
00a23bfd
...
...
@@ -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
s
tack peek function
* Tests the
LinkedListS
tack peek function
*
* @author Michael Lundquist
* @see LinkedListStack#peek()
*/
@Test
public
void
test_LL_StackPeek
(){
...
...
@@ -50,9 +52,10 @@ public class AppTest {
}
/**
*
Tests th
e
s
tack
peek function
*
Makes sur
e
S
tack
'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
()
));
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment