importorg.junit.jupiter.api.Test;importstaticorg.junit.jupiter.api.Assertions.*;publicclassReverseStringTest{@TestvoidtestNormalWord(){Stringhello="hello";Stringexpected="olleh";Stringresult=ReverseString.reverseString(hello);assertEquals(expected,result);}@TestvoidtestSpaceWithWords(){Stringvalue="This is a pen.";Stringexpected=".nep a si sihT";Stringresult=ReverseString.reverStringArrayList(value);assertEquals(expected,result);}}
Top comments (0)
Subscribe
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Top comments (0)