File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed 
src/main/java/com/ctci/stacksandqueues Expand file tree Collapse file tree 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) {
4545        sortStack (unsortedStack );
4646        printStack (unsortedStack );
4747    }
48+     public  static  void  testAssertions () {
49+         Scanner  scanner  = new  Scanner (System .in );
50+         int  n  = scanner .nextInt ();
51+     }
4852}
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