File tree 2 files changed +18
-0
lines changed
src/main/java/com/ctci/stacksandqueues
2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -45,4 +45,8 @@ public static void main(String[] args) {
45
45
sortStack (unsortedStack );
46
46
printStack (unsortedStack );
47
47
}
48
+ public static void testAssertions () {
49
+ Scanner scanner = new Scanner (System .in );
50
+ int n = scanner .nextInt ();
51
+ }
48
52
}
Original file line number Diff line number Diff line change
1
+ package com .ctci .recursionanddp ;
2
+ import org .junit .runner .JUnitCore ;
3
+ import org .junit .runner .Result ;
4
+ import org .junit .runner .notification .Failure ;
5
+ public class SortStackTest {
6
+ public static void main (String [] args ) {
7
+ //testAssertions();
8
+ Result result = JUnitCore .runClasses (QueueViaStacks .class );
9
+ for (Failure failure : result .getFailures ()) {
10
+ System .out .println (failure .toString ());
11
+ }
12
+ System .out .println ("Result == " +result .wasSuccessful ());
13
+ }
14
+ }
You can’t perform that action at this time.
0 commit comments