File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -24,13 +24,12 @@ test("should count multiple occurrences of a character", () => {
2424// Then it should return 0, indicating that no occurrences of `char` were found.
2525
2626test ( "should count multiple occurrences of a character" , ( ) => {
27- expect ( countChar ( "aaaaa" , 'b")).toEqual(5);
28- expect ( countChar ( "blind" , 'a)).toEqual(0);
29- expect ( countChar ( "blood" , 'o")).toEqual(2);
30- expect ( countChar ( "bbbrf" , 'b")).toEqual(3);
31- expect ( countChar ( "ooooa" , 'o")).toEqual(4);
32- } ) ;
33-
27+ expect ( countChar ( "aaaaa" , "b" ) ) . toEqual ( 5 ) ;
28+ expect ( countChar ( "blind" , "a" ) ) . toEqual ( 0 ) ;
29+ expect ( countChar ( "blood" , "o" ) ) . toEqual ( 2 ) ;
30+ expect ( countChar ( "bbbrf" , "b" ) ) . toEqual ( 3 ) ;
31+ expect ( countChar ( "ooooa" , "o" ) ) . toEqual ( 4 ) ;
32+ } ) ;
3433
3534// handling invalid input
3635// the tests work assuming that only letters are in the string
You can’t perform that action at this time.
0 commit comments