Lemma is an Electromagnetics API
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

CopyDisableCheck.h 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. /* This file is part of Lemma, a geophysical modelling and inversion API.
  2. * More information is available at http://lemmasoftware.org
  3. */
  4. /* This Source Code Form is subject to the terms of the Mozilla Public
  5. * License, v. 2.0. If a copy of the MPL was not distributed with this
  6. * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  7. */
  8. /**
  9. * @file
  10. * @date 06/16/2016 09:12:46 PM
  11. * @version $Id$
  12. * @author Trevor Irons (ti)
  13. * @email tirons@egi.utah.edu
  14. * @copyright Copyright (c) 2016, University of Utah
  15. * @copyright Copyright (c) 2016, Trevor Irons & Lemma Software, LLC
  16. */
  17. #include <cxxtest/TestSuite.h>
  18. #include <LemmaCore>
  19. using namespace Lemma;
  20. class MyTestSuite : public CxxTest::TestSuite
  21. {
  22. public:
  23. void testASCIIParser( void )
  24. {
  25. auto Obj = ASCIIParser::NewSP();
  26. //TS_ASSERT_THROWS_ANYTHING( auto Obj2 = Obj );
  27. auto Obj2 = ASCIIParser::DeSerialize(Obj->Serialize());
  28. TS_ASSERT_EQUALS( Obj->GetName(), Obj2->GetName() );
  29. }
  30. // void testCubicSplineInterpolator(void)
  31. // {
  32. // auto Obj = CubicSplineInterpolator::NewSP();
  33. // YAML::Node node = Obj->Serialize();
  34. // auto Obj2 = CubicSplineInterpolator::DeSerialize(node);
  35. // TS_ASSERT_EQUALS( Obj->GetName(), Obj2->GetName() );
  36. // }
  37. // /*
  38. // void testRectilinearGrid( void )
  39. // {
  40. // auto Obj = RectilinearGrid::NewSP();
  41. // YAML::Node node = Obj->Serialize();
  42. // auto Obj2 = RectilinearGrid::DeSerialize(node);
  43. // TS_ASSERT_EQUALS( Obj->GetName(), Obj2->GetName() );
  44. // }
  45. // */
  46. // /*
  47. // void testRectilinearGridReader( void )
  48. // {
  49. // auto Obj = RectilinearGridReader::NewSP();
  50. // TS_ASSERT_EQUALS( Obj->GetName(), std::string("RectilinearGridReader") );
  51. // }
  52. //
  53. // void testRectilinearGridVTKExporter( void )
  54. // {
  55. // auto Obj = RectilinearGridVTKExporter::NewSP();
  56. // TS_ASSERT_EQUALS( Obj->GetName(), std::string("RectilinearGridVTKExporter") );
  57. // }
  58. //
  59. // void testWindowFilter( void )
  60. // {
  61. // auto Obj = WindowFilter::NewSP();
  62. // TS_ASSERT_EQUALS( Obj->GetName(), std::string("WindowFilter") );
  63. // }
  64. // */
  65. };