summaryrefslogtreecommitdiff
path: root/src/Q4/RandomSumGameTest.java
diff options
context:
space:
mode:
authormo <mo.khan@gmail.com>2019-06-18 16:27:29 -0600
committermo <mo.khan@gmail.com>2019-06-18 16:27:29 -0600
commit82589bb93e5b3d7a4c99394c1486c08e1d63eec4 (patch)
treedbc111cd4c92eace419b9e98d58c860d1b30d005 /src/Q4/RandomSumGameTest.java
parent717a1964133f05eb9d39e879f2ed27ebb054cdb2 (diff)
try to understand how this confusing, untestable api is supposed to work
Diffstat (limited to 'src/Q4/RandomSumGameTest.java')
-rw-r--r--src/Q4/RandomSumGameTest.java24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/Q4/RandomSumGameTest.java b/src/Q4/RandomSumGameTest.java
new file mode 100644
index 0000000..3a5e26c
--- /dev/null
+++ b/src/Q4/RandomSumGameTest.java
@@ -0,0 +1,24 @@
+package ca.mokhan.test;
+
+import Q4.*;
+import junit.framework.Test;
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+
+public class RandomSumGameTest extends TestCase {
+ private RandomSumGame subject;
+
+ public RandomSumGameTest(String testName) {
+ super(testName);
+ this.subject = new RandomSumGame();
+ }
+
+ public static Test suite() {
+ return new TestSuite(RandomSumGameTest.class);
+ }
+
+ public void test_play() {
+ subject.play();
+ assertTrue(true);
+ }
+}