diff options
Diffstat (limited to 'src/unit')
| -rw-r--r-- | src/unit/blobbuilder.unit | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/unit/blobbuilder.unit b/src/unit/blobbuilder.unit index 84bf549..7f3fb93 100644 --- a/src/unit/blobbuilder.unit +++ b/src/unit/blobbuilder.unit | |||
| @@ -17,6 +17,7 @@ suite BlobBuilder | |||
| 17 | { | 17 | { |
| 18 | test append | 18 | test append |
| 19 | { | 19 | { |
| 20 | /* | ||
| 20 | Bu::BlobBuilder a; | 21 | Bu::BlobBuilder a; |
| 21 | a.append("a"); | 22 | a.append("a"); |
| 22 | a.append("bc"); | 23 | a.append("bc"); |
| @@ -24,5 +25,17 @@ suite BlobBuilder | |||
| 24 | Bu::println(">%1<\n\n").arg( a.getBlob() ); | 25 | Bu::println(">%1<\n\n").arg( a.getBlob() ); |
| 25 | a.append("abcdef"); | 26 | a.append("abcdef"); |
| 26 | Bu::println(">%1<\n\n").arg( a.getBlob() ); | 27 | Bu::println(">%1<\n\n").arg( a.getBlob() ); |
| 28 | */ | ||
| 29 | } | ||
| 30 | |||
| 31 | test appendChar | ||
| 32 | { | ||
| 33 | Bu::BlobBuilder a; | ||
| 34 | for( int j = 0; j < 20; j++ ) | ||
| 35 | { | ||
| 36 | a += 'A'; | ||
| 37 | } | ||
| 38 | Bu::println("%1").arg( a.getBlob() ); | ||
| 39 | unitTest( a.getBlob() == "AAAAAAAAAAAAAAAAAAAA" ); | ||
| 27 | } | 40 | } |
| 28 | } | 41 | } |
