File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
src/main/java/com/ctci/stacksandqueues Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 22
33import java .util .NoSuchElementException ;
44import java .util .Stack ;
5-
5+ import static org .junit .Assert .*;
6+ import org .junit .Test ;
67/**
78 * Implement a queue using two stacks. No other data structures to be used.
89 *
@@ -58,4 +59,12 @@ public static void main(String[] args) {
5859 queue .remove ();
5960 queue .print ();
6061 }
62+ @ Test
63+ public static void testAssertions () {
64+ Scanner scanner = new Scanner (System .in );
65+ int n = scanner .nextInt ();
66+ for (int i = 0 ; i < n ; i ++) {
67+
68+ }
69+ }
6170}
Original file line number Diff line number Diff line change 44import org .junit .runner .notification .Failure ;
55public class SortStackTest {
66 public static void main (String [] args ) {
7- //testAssertions();
87 Result result = JUnitCore .runClasses (QueueViaStacks .class );
98 for (Failure failure : result .getFailures ()) {
109 System .out .println (failure .toString ());
You can’t perform that action at this time.
0 commit comments