diff --git a/src/test/java/com/serenitydojo/HelloWorldWriteTest.java b/src/test/java/com/serenitydojo/HelloWorldWriteTest.java index 9860436..2ae5300 100644 --- a/src/test/java/com/serenitydojo/HelloWorldWriteTest.java +++ b/src/test/java/com/serenitydojo/HelloWorldWriteTest.java @@ -5,7 +5,6 @@ public class HelloWorldWriteTest { @Test public void shouldWriteHelloWorldToTheConsole() { - System.out.println("Hello world!"); + 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 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")); 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