aboutsummaryrefslogtreecommitdiff
path: root/src/unit
diff options
context:
space:
mode:
Diffstat (limited to 'src/unit')
-rw-r--r--src/unit/fstring.cpp17
1 files changed, 13 insertions, 4 deletions
diff --git a/src/unit/fstring.cpp b/src/unit/fstring.cpp
index 72755eb..2c6bf7a 100644
--- a/src/unit/fstring.cpp
+++ b/src/unit/fstring.cpp
@@ -7,17 +7,26 @@ public:
7 Unit() 7 Unit()
8 { 8 {
9 setName("FString"); 9 setName("FString");
10 addTest( Unit::test1 ); 10 addTest( Unit::compare1 );
11 addTest( Unit::compare2 );
11 } 12 }
12 13
13 virtual ~Unit() 14 virtual ~Unit()
14 { 15 {
15 } 16 }
16 17
17 void test1() 18 void compare1()
18 { 19 {
19 unitTest( 1 == 1 ); 20 Bu::FString b("Bob");
20 unitTest( 1 == 0 ); 21 unitTest( !(b == "Bobo") );
22 unitTest( b == "Bob" );
23 }
24
25 void compare2()
26 {
27 Bu::FString b("Bobo");
28 unitTest( !(b == "Bob") );
29 unitTest( b == "Bobo" );
21 } 30 }
22}; 31};
23 32