Question: this code isn't working this.mycustomstring.setstring(my lucky numbers are 6, 8, and 19.); assertEquals(my lucky numbes e 6, 8, nd 19. , this.myCustomstring.remove(ra6)); // TODO write
this code isn't working


this.mycustomstring.setstring("my lucky numbers are 6, 8, and 19."); assertEquals("my lucky numbes e 6, 8, nd 19." , this.myCustomstring.remove("ra6")); // TODO write at least 3 additional test cases this.myCustomstring.setstring("I aam your guuy"); assertEquals("I m yor gy", this.mycustomstring.remove("au")); this.myCustomstring.setstring("The London bridge is falling down, my fair lady." ); assertequals("he onbri is faldwn, y a yr.", this.myCustomstring.remove("etLoudm")); this.myCustomstring. setstring("Lady Ada Lovelace"); \} assertEquals ("Ldy Ad Lovelce", this.myCustomstring.remove("123a456-")); atest void testReverse() \{ assertEquals("'", this.mycustomstring.reverse("'))); this.myCustomstring. setstring (null) assertEquals("', this.mycustomstring.reverse("')) ; this.myCustomString.setstring("abc, XYZ; 123."); assertEquals("aBC, xyz; 123.", this.myCustomString.reverse("bcdxyz@3210.")); // TODO write at least 3 additional test cases this.myCustomstring.setString("In Long Lost Woods: Go Ahead: March Forward"); assertEquals("drawroF hcra : sdowo tsol gnol nI", this.myCustomstring.reverse("I")); 77 TODO write at least 3 additional test cases this.myCustomstring.setString("In Long Lost Woods: Go Ahead: March Forward"); assertEquals ("drawrof hera :sdowo tsol gnol nI", this.myCustomstring. reverse ("1 ))); this.mycustomstring.setstring("have a cup of 99 tea totals"); assertEquals("slat et 99 fo puc a evah", this.myCustomString.reverse("te")); this.myCustomString.setstring ("World wide Web") ; \} assertEquals ("bew ediW dlrow", this.myCustomstring.reverse("WeLD"))
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
