Home | History | Annotate | Download | only in VCSUtils_unittest

Lines Matching refs:removeEOL

31 # Unit tests of VCSUtils::removeEOL().
39 $title = "removeEOL: Undefined argument.";
40 ok(removeEOL(undef) eq "", $title);
43 $title = "removeEOL: Line with Windows line ending.";
44 ok(removeEOL("This line ends with a Windows line ending.\r\n") eq "This line ends with a Windows line ending.", $title);
47 $title = "removeEOL: Line with Unix line ending.";
48 ok(removeEOL("This line ends with a Unix line ending.\n") eq "This line ends with a Unix line ending.", $title);
51 $title = "removeEOL: Line with Mac line ending.";
52 ok(removeEOL("This line ends with a Mac line ending.\r") eq "This line ends with a Mac line ending.", $title);
55 $title = "removeEOL: Line with a mix of line endings.";
56 ok(removeEOL("This line contains a mix of line endings.\r\n\r\n\r\r\n\n\n\n") eq "This line contains a mix of line endings.", $title);