00001 00006 #ifndef vectorTest_hh 00007 #define vectorTest_hh 00008 00009 #include "basics/testcase.hh" 00010 #include "space/space.hh" 00011 00012 namespace concepts { 00013 template<typename F> 00014 class Vector; 00015 } 00016 00017 using concepts::Real; 00018 using concepts::Cmplx; 00019 00020 namespace test { 00021 00026 class VectorTest : public TestCase { 00027 public: 00028 VectorTest() : spc(10) {} 00029 virtual ~VectorTest() {} 00030 virtual void run(); 00031 00033 00034 00035 void testl1norm(const concepts::Vector<Real>& v); 00036 void testl1normC(const concepts::Vector<Cmplx>& v); 00038 void testl2norm(const concepts::Vector<Real>& v); 00039 void testl2normC(const concepts::Vector<Cmplx>& v); 00041 void testmax(const concepts::Vector<Real>& v); 00042 void testmaxC(const concepts::Vector<Cmplx>& v); 00044 void testreadwrite(const concepts::Vector<Real>& v); 00045 void testreadwriteC(const concepts::Vector<Cmplx>& v); 00047 void testsplit(const concepts::Vector<Cmplx>& v); 00049 void testconversion(const concepts::Vector<Real>& v, 00050 const concepts::Vector<Real>& w); 00052 private: 00053 concepts::DummySpace<Real> spc; 00054 }; 00055 00056 } // namespace test 00057 00058 #endif // vectorTest_hh