]> gitweb.hamatoma.de Git - reqt/commitdiff
dayly work
authorhama <hama@siduction.net>
Sun, 24 Aug 2014 13:54:14 +0000 (15:54 +0200)
committerhama <hama@siduction.net>
Sun, 24 Aug 2014 13:54:14 +0000 (15:54 +0200)
rplcore/rplcharptrmap.cpp
rplexpr/rplsource.hpp
unittests/main.cpp
unittests/unittests.pro

index bcaf414011351973aaedcc81c19f26484a0d34a8..a995536b1b94c5de0f432a161dea8c97551d60ab 100644 (file)
@@ -25,6 +25,8 @@
  * @brief Constructor.
  *
  * @param ptr   the key used in the map.
+ *              @note the pointer will be stored in the map as a key,
+ *              not the content
  */
 RplKeyCharPtr::RplKeyCharPtr(const char* ptr) :
     m_ptr(ptr)
index 61f4c47da0114788eedf5dbc6307a3185cf1d6e7..830b9550a94b49547afe6cde4565ca0cfb57ebf7 100644 (file)
@@ -65,7 +65,7 @@ private:
 
 class RplReader {
 public:
-    typedef QMap<RplSourceUnitName, RplSourceUnit*> UnitMap;
+    typedef RplCharPtrMap<RplSourceUnit*> UnitMap;
 public:
     RplReader(RplSource& source);
     ~RplReader();
index 2cb655542a141ee8654e904731bc1e54ed0598ba..fb909fc6e8d08d6cdfc944e11c39edd239ba466f 100644 (file)
@@ -38,17 +38,22 @@ void testExpr(){
     extern void testRplVM();
     //testRplVM();
 
+    extern void testRplSource();
+    testRplSource();
+
+    extern void testRplLexer();
+    testRplLexer();
+
     extern void testRplMFParser();
     testRplMFParser();
 
     extern void testRplASTree();
     testRplASTree();
-    extern void testRplLexer();
-    testRplLexer();
+
 }
 
 void testStandard(){
-    //testExpr();
+    testExpr();
     testCore();
     extern void testRplMatrix();
     testRplMatrix();
index 1dede45125a7afe466f3dfd9da596c46150b79cc..0104a977fab436d2f2523ee438831b1de69fc2ce 100644 (file)
@@ -44,5 +44,6 @@ SOURCES += main.cpp \
     rplbytestorage_test.cpp \
     rplwriter_test.cpp \
     rplbench.cpp \
-    rplcharptrmap_test.cpp
+    rplcharptrmap_test.cpp \
+    ../rplcore/rplcharptrmap.cpp