Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/main/java/IntroLab.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,11 @@ public static String exampleStudent() {
"Welcome to CSC207!");
}


public static String purbooco() {
return printLabMessage("Hello", "Cole", false, "Welcome to CSC207!");
}
public static void main(final String[] args) {
System.out.println(exampleStudent());
System.out.println(purbooco());

/* TODO: Add a call to the method you wrote in this main method,
* and print the results of it.
Expand Down
11 changes: 7 additions & 4 deletions src/test/java/IntroLabTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ public void tearDown() {
}

@Test(timeout = 10)
public void testExampleStudent() {
String expected = "Hello! My name is Stu Dent! " +
"I like cats more than dogs! Welcome to CSC207!";
String actual = IntroLab.exampleStudent();
public void testpurbooco() {
String expected = "Hello! My name is Cole! " +
"I like dogs more than cats! Welcome to CSC207!";
String actual = IntroLab.purbooco();
assertEquals(expected, actual);
}

Expand All @@ -30,4 +30,7 @@ public void testExampleStudent() {
* the test results.
* As a reference, we've included testExampleStudent above.
*/

}