From b8e129bcb8a4573dd4dbc77ef7af5ce1600c6d96 Mon Sep 17 00:00:00 2001
From: Oliver Sander <sander@igpm.rwth-aachen.de>
Date: Tue, 7 Jun 2011 09:10:00 +0000
Subject: [PATCH] add a specialization for RealTuple<1>

[[Imported from SVN: r7383]]
---
 test/valuefactory.hh | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/test/valuefactory.hh b/test/valuefactory.hh
index fc063abe..5a6c9e82 100644
--- a/test/valuefactory.hh
+++ b/test/valuefactory.hh
@@ -19,6 +19,30 @@ public:
 };
 
 
+/** \brief A class that creates sets of values of various types, to be used in unit tests
+ * 
+ * This is the specialization for RealTuple<1>
+ */
+template <>
+class ValueFactory<RealTuple<1> >
+{
+public:
+    static void get(std::vector<RealTuple<1> >& values) {
+     
+        int nTestPoints = 5;
+        double testPoints[5] = {-3, -1, 0, 2, 4};
+    
+        values.resize(nTestPoints);
+        
+        // Set up elements of S^1
+        for (int i=0; i<nTestPoints; i++)
+            values[i] = RealTuple<1>(testPoints[i]);
+        
+    }
+    
+};
+
+
 /** \brief A class that creates sets of values of various types, to be used in unit tests
  * 
  * This is the specialization for UnitVector<2>
-- 
GitLab