File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
src/extension-test/unit/common Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,17 @@ describe('text-notation test utils', () => {
8
8
const doc = textNotation . docFromTextNotation ( inputText ) ;
9
9
expect ( textNotation . textNotationFromDoc ( doc ) ) . toEqual ( inputText ) ;
10
10
} ) ;
11
+ it ( 'returns the normalized version of the input text to textNotationFromDoc' , ( ) => {
12
+ const inputText = '<0e<0 f >1g>1' ;
13
+ const normalized = '<e< f |1g|1' ;
14
+ const doc = textNotation . docFromTextNotation ( inputText ) ;
15
+ expect ( textNotation . textNotationFromDoc ( doc ) ) . toEqual ( normalized ) ;
16
+
17
+ const inputText1 = '|3a|3 <1b<1 >2c>2 d•>0e>0 f |4g<5<5' ;
18
+ const normalized1 = '|3a|3 <1b<1 |2c|2 d•|e| f |4g|5' ;
19
+ const doc1 = textNotation . docFromTextNotation ( inputText1 ) ;
20
+ expect ( textNotation . textNotationFromDoc ( doc1 ) ) . toEqual ( normalized1 ) ;
21
+ } ) ;
11
22
it ( 'has cursor at end when no trailing newline' , ( ) => {
12
23
const inputText = '()|' ;
13
24
const doc = textNotation . docFromTextNotation ( inputText ) ;
You can’t perform that action at this time.
0 commit comments