mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
35 lines
625 B
C
35 lines
625 B
C
|
//
|
||
|
// This file tests what happens when setUpWorld() fails
|
||
|
//
|
||
|
|
||
|
#include <cxxtest/TestSuite.h>
|
||
|
#include <cxxtest/GlobalFixture.h>
|
||
|
#include <stdio.h>
|
||
|
|
||
|
class Fixture : public CxxTest::GlobalFixture
|
||
|
{
|
||
|
public:
|
||
|
bool setUpWorld() { TS_FAIL("THIS IS BAD"); return false; }
|
||
|
};
|
||
|
|
||
|
//
|
||
|
// We can rely on this file being included exactly once
|
||
|
// and declare this global variable in the header file.
|
||
|
//
|
||
|
static Fixture fixture;
|
||
|
|
||
|
class Suite : public CxxTest::TestSuite
|
||
|
{
|
||
|
public:
|
||
|
|
||
|
void testOne()
|
||
|
{
|
||
|
TS_FAIL("Shouldn't get here at all");
|
||
|
}
|
||
|
|
||
|
void testTwo()
|
||
|
{
|
||
|
TS_FAIL("Shouldn't get here at all");
|
||
|
}
|
||
|
};
|