Lemma is an Electromagnetics API
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

SerializeCheck.h 2.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. YAML::Node node = Obj->Serialize();
  27. auto Obj2 = ASCIIParser::DeSerialize(node);
  28. TS_ASSERT_EQUALS( Obj->GetName(), Obj2->GetName() );
  29. }
  30. // /*
  31. // void testCubicSplineInterpolator(void)
  32. // {
  33. // auto Obj = CubicSplineInterpolator::NewSP();
  34. // TS_ASSERT_EQUALS( Obj->GetName(), std::string("CubicSplineInterpolator") );
  35. // }
  36. //
  37. // void testRectilinearGrid( void )
  38. // {
  39. // auto Obj = RectilinearGrid::NewSP();
  40. // TS_ASSERT_EQUALS( Obj->GetName(), std::string("RectilinearGrid") );
  41. // }
  42. //
  43. // void testRectilinearGridReader( void )
  44. // {
  45. // auto Obj = RectilinearGridReader::NewSP();
  46. // TS_ASSERT_EQUALS( Obj->GetName(), std::string("RectilinearGridReader") );
  47. // }
  48. //
  49. // void testRectilinearGridVTKExporter( void )
  50. // {
  51. // auto Obj = RectilinearGridVTKExporter::NewSP();
  52. // TS_ASSERT_EQUALS( Obj->GetName(), std::string("RectilinearGridVTKExporter") );
  53. // }
  54. //
  55. // void testWindowFilter( void )
  56. // {
  57. // auto Obj = WindowFilter::NewSP();
  58. // TS_ASSERT_EQUALS( Obj->GetName(), std::string("WindowFilter") );
  59. // }
  60. // */
  61. };