File: EnumerationTypeTest.cc

package info (click to toggle)
tyvis 20031216-4
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 3,024 kB
  • ctags: 2,985
  • sloc: cpp: 22,881; sh: 8,372; makefile: 353
file content (21 lines) | stat: -rw-r--r-- 750 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "EnumerationTypeTest.hh"
#include "tyvis/EnumerationType.hh"

void
EnumerationTypeTest::setUp(){}

void
EnumerationTypeTest::tearDown(){}

void
EnumerationTypeTest::testConstructor(){  
  EnumerationType et1;
  CPPUNIT_ASSERT( !et1._is_alias() );
}

void
EnumerationTypeTest::testAnd(){
  CPPUNIT_ASSERT( EnumerationType::getEnumerationTrue().vhdlAnd( EnumerationType::getEnumerationTrue() ) == EnumerationType::getEnumerationTrue() );
  CPPUNIT_ASSERT( EnumerationType::getEnumerationTrue().vhdlAnd( EnumerationType::getEnumerationFalse() ) == EnumerationType::getEnumerationFalse() );
  CPPUNIT_ASSERT( EnumerationType::getEnumerationFalse().vhdlAnd( EnumerationType::getEnumerationFalse() ) == EnumerationType::getEnumerationFalse() );
}