summaryrefslogtreecommitdiff
path: root/src/unit
diff options
context:
space:
mode:
Diffstat (limited to 'src/unit')
-rw-r--r--src/unit/fstring.unit9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/unit/fstring.unit b/src/unit/fstring.unit
index fbebd39..7314095 100644
--- a/src/unit/fstring.unit
+++ b/src/unit/fstring.unit
@@ -141,11 +141,10 @@
141{%subStr1} 141{%subStr1}
142{ 142{
143 Bu::FString a("abcdefghijklmnop"); 143 Bu::FString a("abcdefghijklmnop");
144 unitTest( a.getSubStr( 5, 3 ) == "fgh" ); 144 Bu::FString::iterator i = a.find('f');
145 unitTest( a.getSubStr( 10 ) == "klmnop" ); 145 unitTest( a.getSubStr( i, Bu::FString::iterator() ) == "fghijklmnop" );
146 unitTest( a.getSubStr( 40 ) == "" ); 146 Bu::FString::iterator j = i.find('l');
147 unitTest( a.getSubStr( -10 ) == "abcdefghijklmnop" ); 147 unitTest( a.getSubStr( i, j ) == "fghijk" );
148 unitTest( a.getSubStr( -15, 4 ) == "abcd" );
149} 148}
150 149
151{%compareSub1} 150{%compareSub1}