source: git/libpolys/tests/simple_test.h @ 60ff02

spielwiese
Last change on this file since 60ff02 was 8f26a44, checked in by Oleksandr Motsak <motsak@…>, 11 years ago
Assure that config.h was generated on 'compatible' cpu (same size of long)
  • Property mode set to 100644
File size: 376 bytes
Line 
1#ifdef HAVE_CONFIG_H
2#include "config.h"
3#endif /* HAVE_CONFIG_H */
4#include <misc/auxiliary.h>
5
6class SimplestTestSuite : public CxxTest::TestSuite
7{
8public:
9   void testMyTest()
10   {
11                float fnum = 2.00001f;         
12                TS_ASSERT_DELTA (fnum, 2.0f, 0.0001f);
13   }
14   
15   void testSIZEOFLONG()
16   {
17      TS_ASSERT( sizeof(long) == SIZEOF_LONG ); // correct config.h?
18   }
19   
20};
21
Note: See TracBrowser for help on using the repository browser.