49 lines
1.0 KiB
C
49 lines
1.0 KiB
C
|
#include <cxxtest/TestSuite.h>
|
||
|
#include "lib/SegmentDisplay.h"
|
||
|
|
||
|
class SegmentDisplayTestSuite : public CxxTest::TestSuite
|
||
|
{
|
||
|
public:
|
||
|
void testBeginEnd(void)
|
||
|
{
|
||
|
SegmentDisplay* display = new SegmentDisplay();
|
||
|
display->begin();
|
||
|
display->end();
|
||
|
}
|
||
|
|
||
|
void testWriteNumberFull(void)
|
||
|
{
|
||
|
// TODO test writing the full 8-digit numbers
|
||
|
TS_WARN("Not implemented");
|
||
|
}
|
||
|
|
||
|
void testWriteTextFull(void)
|
||
|
{
|
||
|
// TODO test writing full length text
|
||
|
TS_WARN("Not implemented");
|
||
|
}
|
||
|
|
||
|
void testWriteNumberPartial(void)
|
||
|
{
|
||
|
// TODO test writing a partial 5-digit numbers
|
||
|
TS_WARN("Not implemented");
|
||
|
}
|
||
|
|
||
|
void testWriteTextPartial(void)
|
||
|
{
|
||
|
// TODO test writing partial text
|
||
|
TS_WARN("Not implemented");
|
||
|
}
|
||
|
|
||
|
void testWriteNumberOverflow(void)
|
||
|
{
|
||
|
// TODO test writing a number larger than 8 digits
|
||
|
TS_WARN("Not implemented");
|
||
|
}
|
||
|
|
||
|
void testWriteTextOverflow(void)
|
||
|
{
|
||
|
// TODO test writing text which is too long
|
||
|
TS_WARN("Not implemented");
|
||
|
}
|
||
|
};
|