/[escript]/trunk/dudley/test/MeshAdapterTestCase.cpp
ViewVC logotype

Contents of /trunk/dudley/test/MeshAdapterTestCase.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4154 - (show annotations)
Tue Jan 22 09:30:23 2013 UTC (6 years, 8 months ago) by jfenwick
File size: 1335 byte(s)
Round 1 of copyright fixes
1
2 /*****************************************************************************
3 *
4 * Copyright (c) 2003-2013 by University of Queensland
5 * http://www.uq.edu.au
6 *
7 * Primary Business: Queensland, Australia
8 * Licensed under the Open Software License version 3.0
9 * http://www.opensource.org/licenses/osl-3.0.php
10 *
11 * Development until 2012 by Earth Systems Science Computational Center (ESSCC)
12 * Development since 2012 by School of Earth Sciences
13 *
14 *****************************************************************************/
15
16
17 #include "MeshAdapterTestCase.h"
18
19 #include "dudley/CppAdapter/MeshAdapter.h"
20 #include "dudley/CppAdapter/MeshAdapterFactory.h"
21
22 #include "escript/AbstractContinuousDomain.h"
23
24 #include <cppunit/TestCaller.h>
25 #include <boost/scoped_ptr.hpp>
26
27 using namespace escript;
28 using namespace dudley;
29 using namespace CppUnit;
30
31 void MeshAdapterTestCase::testAll()
32 {
33 // test construction of a mesh using the brick factory method
34 // boost::scoped_ptr<AbstractContinuousDomain> myMesh(brick());
35 brick(); // brick now returns a Domain_ptr which will auto delete
36 }
37
38 TestSuite* MeshAdapterTestCase::suite()
39 {
40 TestSuite *testSuite = new TestSuite("MeshAdapterTestCase");
41
42 testSuite->addTest(new TestCaller<MeshAdapterTestCase>(
43 "testAll",&MeshAdapterTestCase::testAll));
44 return testSuite;
45 }
46

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.26