package org.jbehave.core.junit;

import static org.junit.jupiter.api.Assertions.assertEquals;

import org.junit.jupiter.api.Test;

/**
 * @author Valery_Yatsynovich
 */
class JUnitTextManipulatorBehaviour
{
    @Test
    void shouldEscapeParenthesesWithVerticalBars() {
        String actual = JUnitTextManipulator.escape("some string with (parentheses)");
        assertEquals("some string with |parentheses|", actual);
    }

    @Test
    void shouldEscapeCrLfWithCommas() {
        String actual = JUnitTextManipulator.escape("some\n\r string with \r\n\ncrlf\n\n");
        assertEquals("some,  string with , crlf, ", actual);
    }

    @Test
    void shouldEscalpeDotWithOneDotLeader() {
        String actual = JUnitTextManipulator.escape("some string. with dots.");
        assertEquals("some string\u2024 with dots\u2024", actual);
    }
}

@@ -660,17 +660,16 @@
 ouldEsca
-l
 peDotWit

JBEHAVE-551 Fix typo