Beispiel #1
0
            'the text is not replaced.', function() {
            input = '"test test"\ntest';
            output = util.replaceNewlineToSubchar(input);

            expect(output).toBe(input);
        });
Beispiel #2
0
            'CR+LF characters in double quotes are replaced by substitution characters.', function() {
            input = '"test\r\n""te""st"\r\ntest';
            output = util.replaceNewlineToSubchar(input);

            expect(output).toBe('"test' + customCRSubChar + customLFSubChar + '""te""st"\r\ntest');
        });