File: multi_ok.cc

package info (click to toggle)
atheist 0.20110402-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,348 kB
  • sloc: python: 4,764; xml: 626; makefile: 113; cpp: 54; ansic: 5; sh: 5
file content (26 lines) | stat: -rw-r--r-- 366 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// MyTestSuite.h
#include <cxxtest/TestSuite.h>
class MyTestSuite : public CxxTest::TestSuite
{
public:
   void testAddition( void )
   {
      TS_ASSERT( 1 + 1 > 1 );
   }

   void testDiff( void )
   {
      TS_ASSERT( 1 - 1 == 0 );
   }

   void testMult(void)
   {
		 TS_ASSERT((10*2) == 20);
   }

   void testDiv(void)
   {
		 TS_ASSERT((10/2) == 5);
   }

};