File tree Expand file tree Collapse file tree 3 files changed +38
-3
lines changed
exercises/practice/reverse-string Expand file tree Collapse file tree 3 files changed +38
-3
lines changed Original file line number Diff line number Diff line change 55 "contributors" : [
66 " ankorGH" ,
77 " d-vail" ,
8+ " jagdish-15" ,
89 " ovidiu141" ,
910 " SleeplessByte"
1011 ],
Original file line number Diff line number Diff line change 1- # This is an auto-generated file. Regular comments will be removed when this
2- # file is regenerated. Regenerating will not touch any manually added keys,
3- # so comments can be added in a "comment" key.
1+ # This is an auto-generated file.
2+ #
3+ # Regenerating this file via `configlet sync` will:
4+ # - Recreate every `description` key/value pair
5+ # - Recreate every `reimplements` key/value pair, where they exist in problem-specifications
6+ # - Remove any `include = true` key/value pair (an omitted `include` key implies inclusion)
7+ # - Preserve any other key/value pair
8+ #
9+ # As user-added comments (using the # character) will be removed when this file
10+ # is regenerated, comments can be added via a `comment` key.
411
512[c3b7d806-dced-49ee-8543-933fd1719b1c ]
613description = " an empty string"
@@ -19,3 +26,12 @@ description = "a palindrome"
1926
2027[b9e7dec1-c6df-40bd-9fa3-cd7ded010c4c ]
2128description = " an even-sized word"
29+
30+ [1bed0f8a-13b0-4bd3-9d59-3d0593326fa2 ]
31+ description = " wide characters"
32+
33+ [93d7e1b8-f60f-4f3c-9559-4056e10d2ead ]
34+ description = " grapheme cluster with pre-combined form"
35+
36+ [1028b2c1-6763-4459-8540-2da47ca512d9 ]
37+ description = " grapheme clusters"
Original file line number Diff line number Diff line change @@ -37,4 +37,22 @@ describe('ReverseString', () => {
3737 const actual = reverseString ( 'drawer' ) ;
3838 expect ( actual ) . toEqual ( expected ) ;
3939 } ) ;
40+
41+ xtest ( 'wide characters' , ( ) => {
42+ const expected = '猫子' ;
43+ const actual = reverseString ( '子猫' ) ;
44+ expect ( actual ) . toEqual ( expected ) ;
45+ } ) ;
46+
47+ xtest ( 'grapheme cluster with pre-combined form' , ( ) => {
48+ const expected = 'dnatsnehctsrüW' ;
49+ const actual = reverseString ( 'Würstchenstand' ) ;
50+ expect ( actual ) . toEqual ( expected ) ;
51+ } ) ;
52+
53+ xtest ( 'grapheme clusters' , ( ) => {
54+ const expected = 'มรกแรปโนยขีเผู้' ;
55+ const actual = reverseString ( 'ผู้เขียนโปรแกรม' ) ;
56+ expect ( actual ) . toEqual ( expected ) ;
57+ } ) ;
4058} ) ;
You can’t perform that action at this time.
0 commit comments