aboutsummaryrefslogtreecommitdiff
path: root/src/unit
diff options
context:
space:
mode:
Diffstat (limited to 'src/unit')
-rw-r--r--src/unit/fstring.cpp28
-rw-r--r--src/unit/sfile.cpp27
2 files changed, 55 insertions, 0 deletions
diff --git a/src/unit/fstring.cpp b/src/unit/fstring.cpp
new file mode 100644
index 0000000..72755eb
--- /dev/null
+++ b/src/unit/fstring.cpp
@@ -0,0 +1,28 @@
1#include "fstring.h"
2#include "unitsuite.h"
3
4class Unit : public Bu::UnitSuite
5{
6public:
7 Unit()
8 {
9 setName("FString");
10 addTest( Unit::test1 );
11 }
12
13 virtual ~Unit()
14 {
15 }
16
17 void test1()
18 {
19 unitTest( 1 == 1 );
20 unitTest( 1 == 0 );
21 }
22};
23
24int main( int argc, char *argv[] )
25{
26 return Unit().run( argc, argv );
27}
28
diff --git a/src/unit/sfile.cpp b/src/unit/sfile.cpp
new file mode 100644
index 0000000..7b19942
--- /dev/null
+++ b/src/unit/sfile.cpp
@@ -0,0 +1,27 @@
1#include "unitsuite.h"
2
3class Unit : public Bu::UnitSuite
4{
5public:
6 Unit()
7 {
8 setName("SFile");
9 addTest( Unit::test );
10 }
11
12 virtual ~Unit() { }
13
14 //
15 // Tests go here
16 //
17 void test()
18 {
19 unitTest( 1 == 1 );
20 }
21};
22
23int main( int argc, char *argv[] )
24{
25 return Unit().run( argc, argv );
26}
27