Skip to content
Snippets Groups Projects
Commit 65ee48a5 authored by Hakan Sandell's avatar Hakan Sandell
Browse files

Made multiline test cases work on windows too

parent e6101bb6
No related branches found
No related tags found
No related merge requests found
......@@ -3,11 +3,7 @@
class common_cleanText_test extends DokuWikiTest {
function test_unix(){
$unix = 'one
two
three';
$unix = "one\n two\n\n three";
$this->assertEquals($unix,cleanText($unix));
}
......
......@@ -111,12 +111,10 @@ class js_js_compress_test extends DokuWikiTest {
}
function test_multilinestring(){
$text = 'var foo = "this is a \\
multiline string";';
$text = 'var foo = "this is a \\'."\n".'multiline string";';
$this->assertEquals('var foo="this is a multiline string";',js_compress($text));
$text = "var foo = 'this is a \\
multiline string';";
$text = "var foo = 'this is a \\\nmultiline string';";
$this->assertEquals("var foo='this is a multiline string';",js_compress($text));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment