Development test failure #2180
Development test failure #2180
Conversation
| //Assertions fail for functional reasons | ||
| Assertions.assertEquals(toUpperCase("abc"), "abc", "The strings are not equals"); | ||
|
|
||
| Assertions.assertNotEquals(toUpperCase("abc"), "abc", "The strings are not equals"); |
nishantc1527
Apr 18, 2021
Contributor
I think it would be useful if there would be a test something like:
Assertions.assertEquals(toUpperCase("abc"), "ABC", "The strings are equal");
Just to check if the string is correctly capitalized.
I think it would be useful if there would be a test something like:
Assertions.assertEquals(toUpperCase("abc"), "ABC", "The strings are equal");
Just to check if the string is correctly capitalized.
| @@ -8,8 +8,8 @@ | |||
| @Test | |||
| void testUpper() { | |||
| Assertions.assertEquals(toUpperCase("abc"), ("abc").toUpperCase(), "The strings are equals"); | |||
nishantc1527
Apr 18, 2021
Contributor
Instead of "The strings are equals" I think it should be "The strings are equal"
Instead of "The strings are equals" I think it should be "The strings are equal"
mk-94
Apr 19, 2021
Author
I'll change it an make a new pull request. :)
I'll change it an make a new pull request. :)
|
I need some more details why the test did not pass. |
|
I'm also wondering why the tests don't work. I'm looking at it right now. |
| Assertions.assertEquals(toUpperCase("abc"), ("abc").toUpperCase(), "The strings are equals"); | ||
| //Assertions fail for functional reasons | ||
| Assertions.assertEquals(toUpperCase("abc"), "abc", "The strings are not equals"); | ||
| Assertions.assertEquals( "ABC",toUpperCase("abc"), "The strings are equal"); |
nishantc1527
Apr 20, 2021
Contributor
I guess you can revert this assertion and we can figure it out later.
I guess you can revert this assertion and we can figure it out later.
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |


Describe your change:
References
Correct the test in UpperTest.java and delete comment. Test-cases are working now.
Checklist:
Fixes: #{$ISSUE_NO}.