[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdevelop/languages/cpp/duchainbuilder/tests
From: David Nolden <david.nolden.kde () art-master ! de>
Date: 2007-08-19 15:02:14
Message-ID: 1187535734.169251.3199.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 701854 by zwabel:
Add some tests for operator identifier parsing
M +6 -0 test_duchain.cpp
--- trunk/KDE/kdevelop/languages/cpp/duchainbuilder/tests/test_duchain.cpp #701853:701854
@@ -213,14 +213,20 @@
QualifiedIdentifier op2("operator<=");
QualifiedIdentifier op3("operator>");
QualifiedIdentifier op4("operator>=");
+ QualifiedIdentifier op5("operator()");
+ QualifiedIdentifier op6("operator( )");
QCOMPARE(op1.count(), 1);
QCOMPARE(op2.count(), 1);
QCOMPARE(op3.count(), 1);
QCOMPARE(op4.count(), 1);
+ QCOMPARE(op5.count(), 1);
+ QCOMPARE(op6.count(), 1);
QCOMPARE(op4.toString(), QString("operator>="));
QCOMPARE(op3.toString(), QString("operator>"));
QCOMPARE(op1.toString(), QString("operator<"));
QCOMPARE(op2.toString(), QString("operator<="));
+ QCOMPARE(op5.toString(), QString("operator()"));
+ QCOMPARE(op6.toString(), QString("operator( )"));
}
void TestDUChain::testContextRelationships()
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic