diff options
Diffstat (limited to '')
-rw-r--r-- | src/unit/array.unit | 8 | ||||
-rw-r--r-- | src/unit/string.unit | 6 |
2 files changed, 14 insertions, 0 deletions
diff --git a/src/unit/array.unit b/src/unit/array.unit index 83401c1..e9f2bdf 100644 --- a/src/unit/array.unit +++ b/src/unit/array.unit | |||
@@ -101,4 +101,12 @@ suite Array | |||
101 | unitTest( aInts[j] == j ); | 101 | unitTest( aInts[j] == j ); |
102 | } | 102 | } |
103 | } | 103 | } |
104 | |||
105 | test setSize | ||
106 | { | ||
107 | Bu::Array<Bu::String> aStr( 3 ); | ||
108 | aStr.setSize( 3 ); | ||
109 | aStr[1] = "Hello"; | ||
110 | aStr[0] = aStr[1].clone(); | ||
111 | } | ||
104 | } | 112 | } |
diff --git a/src/unit/string.unit b/src/unit/string.unit index 1f4ca7e..6242eff 100644 --- a/src/unit/string.unit +++ b/src/unit/string.unit | |||
@@ -586,6 +586,12 @@ suite String | |||
586 | { | 586 | { |
587 | unitTest( Bu::String("0x%{1}00").arg( 75, Bu::Fmt::hex() ).end() == "0x4b00" ); | 587 | unitTest( Bu::String("0x%{1}00").arg( 75, Bu::Fmt::hex() ).end() == "0x4b00" ); |
588 | } | 588 | } |
589 | |||
590 | test sharedEmpty1 | ||
591 | { | ||
592 | Bu::String a; | ||
593 | Bu::String b = a.clone(); | ||
594 | } | ||
589 | } | 595 | } |
590 | // 03F09CA4F58AC8CA0E80F0D9D409D0A60700A192270004BC3A99E91D0001034F544603362E35013103313130019CA4F58AC8CA0E0002830800002C4200008AC200EBF7D9D4090127BB010000E3 | 596 | // 03F09CA4F58AC8CA0E80F0D9D409D0A60700A192270004BC3A99E91D0001034F544603362E35013103313130019CA4F58AC8CA0E0002830800002C4200008AC200EBF7D9D4090127BB010000E3 |
591 | // | 597 | // |