Lemma is an Electromagnetics API
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

GetNameCheck.h 1.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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_EQUALS( Obj->GetName(), std::string("ASCIIParser") );
  27. }
  28. void testCubicSplineInterpolator(void)
  29. {
  30. auto Obj = CubicSplineInterpolator::NewSP();
  31. TS_ASSERT_EQUALS( Obj->GetName(), std::string("CubicSplineInterpolator") );
  32. }
  33. void testRectilinearGrid( void )
  34. {
  35. auto Obj = RectilinearGrid::NewSP();
  36. TS_ASSERT_EQUALS( Obj->GetName(), std::string("RectilinearGrid") );
  37. }
  38. void testRectilinearGridReader( void )
  39. {
  40. auto Obj = RectilinearGridReader::NewSP();
  41. TS_ASSERT_EQUALS( Obj->GetName(), std::string("RectilinearGridReader") );
  42. }
  43. void testRectilinearGridVTKExporter( void )
  44. {
  45. #ifdef LEMMAUSEVTK
  46. auto Obj = RectilinearGridVTKExporter::NewSP();
  47. TS_ASSERT_EQUALS( Obj->GetName(), std::string("RectilinearGridVTKExporter") );
  48. #else
  49. // dummy test if no VTK
  50. TS_ASSERT_EQUALS( 3, 2+1 );
  51. #endif
  52. }
  53. void testWindowFilter( void )
  54. {
  55. auto Obj = WindowFilter::NewSP();
  56. TS_ASSERT_EQUALS( Obj->GetName(), std::string("WindowFilter") );
  57. }
  58. };