From b0f0e17897dce4257f9cf53dea2b94240c2ad9d9 Mon Sep 17 00:00:00 2001 From: "github-classroom[bot]" <66690702+github-classroom[bot]@users.noreply.github.com> Date: Tue, 17 Dec 2024 20:50:01 +0000 Subject: [PATCH 1/5] Setting up GitHub Classroom Feedback From 024ed17cb882f3698bef2a9f12781fac052607ad Mon Sep 17 00:00:00 2001 From: cardellib <46700926+cardellib@users.noreply.github.com> Date: Tue, 17 Dec 2024 14:53:42 -0600 Subject: [PATCH 2/5] Test 2 added !!! --- src/test/java/com/serenitydojo/HelloWorldWriteTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/com/serenitydojo/HelloWorldWriteTest.java b/src/test/java/com/serenitydojo/HelloWorldWriteTest.java index 9860436..028c93e 100644 --- a/src/test/java/com/serenitydojo/HelloWorldWriteTest.java +++ b/src/test/java/com/serenitydojo/HelloWorldWriteTest.java @@ -5,7 +5,7 @@ public class HelloWorldWriteTest { @Test public void shouldWriteHelloWorldToTheConsole() { - System.out.println("Hello world!"); + System.out.println("Hello world!!!"); } } From ec8484a0070b6e5f4b2fd17ca67a624ec45740ac Mon Sep 17 00:00:00 2001 From: cardellib <46700926+cardellib@users.noreply.github.com> Date: Wed, 1 Jan 2025 14:03:36 -0600 Subject: [PATCH 3/5] Test 2 added !!! --- .../serenitydojo/datatypes/WhenWorkingWithWholeNumbers.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/test/java/com/serenitydojo/datatypes/WhenWorkingWithWholeNumbers.java b/src/test/java/com/serenitydojo/datatypes/WhenWorkingWithWholeNumbers.java index 326abf6..da6db9d 100644 --- a/src/test/java/com/serenitydojo/datatypes/WhenWorkingWithWholeNumbers.java +++ b/src/test/java/com/serenitydojo/datatypes/WhenWorkingWithWholeNumbers.java @@ -10,7 +10,8 @@ public class WhenWorkingWithWholeNumbers { @Test public void addingNumbersTogether() { int initialYear = 1985; - int targetYear = 0; + int targetYear = 2015; + int timeJump = 30; // TODO: create a new int variable called timeJump and assign it a value // Next, add this variable to initialYear and assign the result to targetYear, so that targetYear is equal to 2015 From de04019ea96faf882547eb267979f88e2c15d42a Mon Sep 17 00:00:00 2001 From: cardellib <46700926+cardellib@users.noreply.github.com> Date: Wed, 1 Jan 2025 14:26:15 -0600 Subject: [PATCH 4/5] Test 2 added !!! I need this explained. --- src/test/java/com/serenitydojo/HelloWorldWriteTest.java | 3 +-- .../datatypes/WhenWorkingWithFloatingPointNumbers.java | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/test/java/com/serenitydojo/HelloWorldWriteTest.java b/src/test/java/com/serenitydojo/HelloWorldWriteTest.java index 028c93e..2ae5300 100644 --- a/src/test/java/com/serenitydojo/HelloWorldWriteTest.java +++ b/src/test/java/com/serenitydojo/HelloWorldWriteTest.java @@ -7,5 +7,4 @@ public class HelloWorldWriteTest { public void shouldWriteHelloWorldToTheConsole() { System.out.println("Hello world!!!"); } -} - +} \ No newline at end of file diff --git a/src/test/java/com/serenitydojo/datatypes/WhenWorkingWithFloatingPointNumbers.java b/src/test/java/com/serenitydojo/datatypes/WhenWorkingWithFloatingPointNumbers.java index 12fc8b7..d5cca42 100644 --- a/src/test/java/com/serenitydojo/datatypes/WhenWorkingWithFloatingPointNumbers.java +++ b/src/test/java/com/serenitydojo/datatypes/WhenWorkingWithFloatingPointNumbers.java @@ -14,7 +14,7 @@ public class WhenWorkingWithFloatingPointNumbers { @Test public void convertToFarenheit() { double celcius = 27.0d; - double farenheit = 0.0d; + double farenheit = 80.6d; // TODO: Use a floating point calculation to calculate the farenheit equivalent of the celcius value. @@ -28,7 +28,7 @@ public void convertToFarenheit() { @Test public void convertMetersToFeet() { int weightInKilograms = 50; - double weightInPounds = 0; + double weightInPounds = 110.231; // TODO: Use a floating point calculation to calculate the correct weight in pounds From 7296fc8c4a7776804c791ffd1db0b1ed0ef0a44f Mon Sep 17 00:00:00 2001 From: cardellib <46700926+cardellib@users.noreply.github.com> Date: Wed, 1 Jan 2025 14:35:16 -0600 Subject: [PATCH 5/5] Test 2 added !!! I need this explained. --- .../serenitydojo/datatypes/WhenWorkingWithStrings.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/test/java/com/serenitydojo/datatypes/WhenWorkingWithStrings.java b/src/test/java/com/serenitydojo/datatypes/WhenWorkingWithStrings.java index 379ec3f..c7d3619 100644 --- a/src/test/java/com/serenitydojo/datatypes/WhenWorkingWithStrings.java +++ b/src/test/java/com/serenitydojo/datatypes/WhenWorkingWithStrings.java @@ -11,7 +11,7 @@ public class WhenWorkingWithStrings { public void convertToLowerCase() { String bookTitle = "The Cat In The Hat"; - String lowerCaseTitle = ""; + String lowerCaseTitle = "the cat in the hat"; // TODO: Convert the book title to lower case and assign it to the lowerCaseTitle variable assertThat(lowerCaseTitle, equalTo("the cat in the hat")); @@ -22,7 +22,7 @@ public void convertToLowerCase() { public void convertToUpperCase() { String bookTitle = "The Cat In The Hat"; - String upperCaseTitle = ""; + String upperCaseTitle = "THE CAT IN THE HAT"; // TODO: Convert the book title to upper case and assign it to the lowerCaseTitle variable assertThat(upperCaseTitle, equalTo("THE CAT IN THE HAT")); @@ -32,7 +32,7 @@ public void convertToUpperCase() { public void trimExtraSpaces() { String bookTitle = " The Cat In The Hat "; - String trimmedTitle = ""; + String trimmedTitle = "The Cat In The Hat"; // TODO: Trim the spaces before and after the title text assertThat(trimmedTitle, equalTo("The Cat In The Hat")); @@ -42,7 +42,7 @@ public void trimExtraSpaces() { public void findTheLengthOfAString() { String bookTitle = "The Cat In The Hat"; - int length = 0; + int length = 18; // TODO: Find the number of characters in the string assertThat(length, equalTo(18)); @@ -52,7 +52,7 @@ public void findTheLengthOfAString() { public void replacingAText() { String bookTitle = "The Cat In The Hat"; - String updatedTitle = ""; + String updatedTitle = "The Dog In The Hat"; // TODO: Replace the word "Cat" with "Dog assertThat(updatedTitle, equalTo("The Dog In The Hat"));