[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kdev-ruby] /: Move failing heredoc test to parser tests: it's parser that crashes
From:       Alexander Dymo <adymo () kdevelop ! org>
Date:       2012-10-24 22:59:31
Message-ID: 20121024225931.D941EA60D1 () git ! kde ! org
[Download RAW message or body]

Git commit ca1db2bf726d9019bc275e022e40a23d5ac07f09 by Alexander Dymo.
Committed on 25/10/2012 at 00:59.
Pushed by dymo into branch 'master'.

Move failing heredoc test to parser tests: it's parser that crashes

M  +0    -7    duchain/tests/duchain.cpp
M  +4    -0    parser/tools/tests/heredoc.rb

http://commits.kde.org/kdev-ruby/ca1db2bf726d9019bc275e022e40a23d5ac07f09

diff --git a/duchain/tests/duchain.cpp b/duchain/tests/duchain.cpp
index 3bcd7e1..46c4e77 100644
--- a/duchain/tests/duchain.cpp
+++ b/duchain/tests/duchain.cpp
@@ -405,13 +405,6 @@ EOS\n\
 ");
     TopDUContext *top = parse(code, "hereDoc");
 
-    QByteArray code2("\
-<<'.,.,'\n\
-  smth\n\
-.,.,\n\
-");
-    TopDUContext *top2 = parse(code2, "hereDoc");
-
     DOES_NOT_CRASH;
 }
 
diff --git a/parser/tools/tests/heredoc.rb b/parser/tools/tests/heredoc.rb
index 7312f5f..cfc72bb 100644
--- a/parser/tools/tests/heredoc.rb
+++ b/parser/tools/tests/heredoc.rb
@@ -59,3 +59,7 @@ asd
 <<here
 Ã Ã  #{asd}
 here
+
+<<'.,.,'\n\
+  smth\n\
+.,.,\n\
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic