aboutsummaryrefslogtreecommitdiff
path: root/src/unit/entities/unit
blob: 47fbfb4008372c497e81e268a467a402e29f7225 (plain)
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
27
28
29
30
31
32
33
34
35
36
37
<?xml version="1.1" ?>
<entity desc="Unit test framework">
	<param name="name" required="yes" desc="Name of the class"/>
	<file
		name="source"
		filename="{=name:%tolower}.cpp"
>/*
 * Copyright (C) 2007-2023 Xagasoft, All rights reserved.
 *
 * This file is part of the libbu++ library and is released under the
 * terms of the license contained in the file LICENSE.
 */

#include "bu/unitsuite.h"

class Unit : public Bu::UnitSuite
{
public:
	Unit()
	{
		setName("{=name}");
		addTest( Unit::test01 );
	}

	virtual ~Unit()
	{
	}

	void test01()
	{
		unitTest( 0 == 5 );
	}
};

int main( int argc, char *argv[] ){ return Unit().run( argc, argv ); }
</file>
</entity>