Add support for int64 in refdata
[alexxy/gromacs.git] / src / testutils / refdata.h
index 3c2c3b2f580cb6d1e29f2103c9edb5d89e9addb4..5ae387533f9efd6a202802c98fc8d96c19559c41 100644 (file)
@@ -46,6 +46,7 @@
 #include <iterator>
 #include <string>
 
+#include "gromacs/utility/basedefinitions.h"
 #include "gromacs/utility/common.h"
 
 namespace gmx
@@ -315,6 +316,10 @@ class TestReferenceChecker
         void checkStringBlock(const std::string &value, const char *id);
         //! Check a single integer value.
         void checkInteger(int value, const char *id);
+        //! Check a single int64 value.
+        void checkInt64(gmx_int64_t value, const char *id);
+        //! Check a single uint64 value.
+        void checkUInt64(gmx_uint64_t value, const char *id);
         //! Check a single single-precision floating point value.
         void checkFloat(float value, const char *id);
         //! Check a single double-precision floating point value.
@@ -359,6 +364,16 @@ class TestReferenceChecker
         {
             checkInteger(value, id);
         }
+        //! Check a single integer value.
+        void checkValue(gmx_int64_t value, const char *id)
+        {
+            checkInt64(value, id);
+        }
+        //! Check a single integer value.
+        void checkValue(gmx_uint64_t value, const char *id)
+        {
+            checkUInt64(value, id);
+        }
         //! Check a single single-precision floating point value.
         void checkValue(float value, const char *id)
         {