Skip to content

Commit 84a5f8d

Browse files
committed
l
m
1 parent da0ca0f commit 84a5f8d

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

src/main/java/com/ctci/stacksandqueues/SortStack.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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+
}

0 commit comments

Comments
 (0)