NerfStatTrak/test/SegmentDisplayTestSuite.h

62 lines
1.2 KiB
C
Raw Permalink Normal View History

#include <cxxtest/TestSuite.h>
#include "Mock.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)
{
SegmentDisplay* display = new SegmentDisplay();
display->begin();
display->setDigits(8);
display->writeNumber(12345678);
display->end();
// TODO test writing the full 8-digit numbers
}
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");
}
*/
};