From a891119b456f2683fa2a2e715a4d5e64d4009ec9 Mon Sep 17 00:00:00 2001
From: Christopher Bohn <bohn@unl.edu>
Date: Mon, 21 Sep 2020 10:56:47 -0500
Subject: [PATCH] Corrected test names in CaucusTest, updated due date

---
 README.md                                     |  2 +-
 .../cse/soft160/conditionals/CaucusTest.java  | 64 ++++++++++++-------
 2 files changed, 41 insertions(+), 25 deletions(-)

diff --git a/README.md b/README.md
index 5769ed6..12d6736 100644
--- a/README.md
+++ b/README.md
@@ -236,7 +236,7 @@ This assignment is worth **16 points**:
     test cases provided, and
 *   **1.0 point** if your solution to Part II uses a single conditional.
 
-The assignment is due Monday, September&nbsp;28 at 9:00&nbsp;a.m.
+The assignment is due Wednesday, September&nbsp;30 at 9:00&nbsp;a.m.
 
 **NOTE: You will lose 2 points if you do not follow the file-naming conventions
 listed in the instructions.**
diff --git a/src/test/java/edu/unl/cse/soft160/conditionals/CaucusTest.java b/src/test/java/edu/unl/cse/soft160/conditionals/CaucusTest.java
index d521531..a3ddf96 100644
--- a/src/test/java/edu/unl/cse/soft160/conditionals/CaucusTest.java
+++ b/src/test/java/edu/unl/cse/soft160/conditionals/CaucusTest.java
@@ -27,58 +27,74 @@ public class CaucusTest {
 	}
 
 	@Test
-	public void testAcquireWithNoRotation() {
+	public void testInvalidReportNotOnCaucusDay() {
 		assertEquals(assemble("Is today a caucus day (yes/no)? "
-				+ "Is the precinct report a correctly-formatted electronic report (yes/no)? " + "Is the precinct report a telephoned report (yes/no)? "
-				+ "Precinct report rejected"), runMain("no", "no", "no"));
+				+ "Is the precinct report a correctly-formatted electronic report (yes/no)? "
+				+ "Is the precinct report a telephoned report (yes/no)? "
+				+ "Precinct report rejected"),
+				runMain("no", "no", "no"));
 	}
 
 	@Test
-	public void testAcquireWithSTTRotation() {
+	public void testTelephoneReportNotOnCaucusDay() {
 		assertEquals(assemble("Is today a caucus day (yes/no)? "
-				+ "Is the precinct report a correctly-formatted electronic report (yes/no)? " + "Is the precinct report a telephoned report (yes/no)? "
-				+ "Precinct report rejected"), runMain("no", "no", "yes"));
+				+ "Is the precinct report a correctly-formatted electronic report (yes/no)? "
+				+ "Is the precinct report a telephoned report (yes/no)? "
+				+ "Precinct report rejected"),
+				runMain("no", "no", "yes"));
 	}
 
 	@Test
-	public void testAcquireWithIRURotation() {
+	public void testWellFormattedElectronicReportNotOnCaucusDay() {
 		assertEquals(assemble("Is today a caucus day (yes/no)? "
-				+ "Is the precinct report a correctly-formatted electronic report (yes/no)? " + "Is the precinct report a telephoned report (yes/no)? "
-				+ "Precinct report rejected"), runMain("no", "yes", "no"));
+				+ "Is the precinct report a correctly-formatted electronic report (yes/no)? "
+				+ "Is the precinct report a telephoned report (yes/no)? "
+				+ "Precinct report rejected"),
+				runMain("no", "yes", "no"));
 	}
 
 	@Test
-	public void testAcquireWithRotation() {
+	public void testDuplicatedReportNotOnCaucusDay() {
 		assertEquals(assemble("Is today a caucus day (yes/no)? "
-				+ "Is the precinct report a correctly-formatted electronic report (yes/no)? " + "Is the precinct report a telephoned report (yes/no)? "
-				+ "Precinct report rejected"), runMain("no", "yes", "yes"));
+				+ "Is the precinct report a correctly-formatted electronic report (yes/no)? "
+				+ "Is the precinct report a telephoned report (yes/no)? "
+				+ "Precinct report rejected"),
+				runMain("no", "yes", "yes"));
 	}
 
 	@Test
-	public void testTrackWithNoRotation() {
+	public void testInvalidReportOnCaucusDay() {
 		assertEquals(assemble("Is today a caucus day (yes/no)? "
-				+ "Is the precinct report a correctly-formatted electronic report (yes/no)? " + "Is the precinct report a telephoned report (yes/no)? "
-				+ "Precinct report rejected"), runMain("yes", "no", "no"));
+				+ "Is the precinct report a correctly-formatted electronic report (yes/no)? "
+				+ "Is the precinct report a telephoned report (yes/no)? "
+				+ "Precinct report rejected"),
+				runMain("yes", "no", "no"));
 	}
 
 	@Test
-	public void testTrackWithSTTRotation() {
+	public void testTelephoneReportOnCaucusDay() {
 		assertEquals(assemble("Is today a caucus day (yes/no)? "
-				+ "Is the precinct report a correctly-formatted electronic report (yes/no)? " + "Is the precinct report a telephoned report (yes/no)? "
-				+ "Precinct report accepted"), runMain("yes", "no", "yes"));
+				+ "Is the precinct report a correctly-formatted electronic report (yes/no)? "
+				+ "Is the precinct report a telephoned report (yes/no)? "
+				+ "Precinct report accepted"),
+				runMain("yes", "no", "yes"));
 	}
 
 	@Test
-	public void testTrackWithIRURotation() {
+	public void testWellFormattedElectronicReportOnCaucusDay() {
 		assertEquals(assemble("Is today a caucus day (yes/no)? "
-				+ "Is the precinct report a correctly-formatted electronic report (yes/no)? " + "Is the precinct report a telephoned report (yes/no)? "
-				+ "Precinct report accepted"), runMain("yes", "yes", "no"));
+				+ "Is the precinct report a correctly-formatted electronic report (yes/no)? "
+				+ "Is the precinct report a telephoned report (yes/no)? "
+				+ "Precinct report accepted"),
+				runMain("yes", "yes", "no"));
 	}
 
 	@Test
-	public void testTrackWithRotation() {
+	public void testDuplicatedReportOnCaucusDay() {
 		assertEquals(assemble("Is today a caucus day (yes/no)? "
-				+ "Is the precinct report a correctly-formatted electronic report (yes/no)? " + "Is the precinct report a telephoned report (yes/no)? "
-				+ "Precinct report accepted"), runMain("yes", "yes", "yes"));
+				+ "Is the precinct report a correctly-formatted electronic report (yes/no)? "
+				+ "Is the precinct report a telephoned report (yes/no)? "
+				+ "Precinct report accepted"),
+				runMain("yes", "yes", "yes"));
 	}
 }
-- 
GitLab