diff options
author | Mike Buland <eichlan@xagasoft.com> | 2023-08-04 13:31:04 -0700 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2023-08-04 13:31:04 -0700 |
commit | 7c36f58654f1b238d1b416927c9485a151216b1b (patch) | |
tree | 824b078ffae75f6878c4ea2983395939bec4b976 /src/unit | |
parent | 99095773aa31bf8eb283d6f6319a29c71e51ca9c (diff) | |
download | libbu++-7c36f58654f1b238d1b416927c9485a151216b1b.tar.gz libbu++-7c36f58654f1b238d1b416927c9485a151216b1b.tar.bz2 libbu++-7c36f58654f1b238d1b416927c9485a151216b1b.tar.xz libbu++-7c36f58654f1b238d1b416927c9485a151216b1b.zip |
Removed the shared unit test for strings.
Strings are no longer shared.
Diffstat (limited to '')
-rw-r--r-- | src/unit/string.unit | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/unit/string.unit b/src/unit/string.unit index c9b1ea5..90710c0 100644 --- a/src/unit/string.unit +++ b/src/unit/string.unit | |||
@@ -35,17 +35,6 @@ suite String | |||
35 | unitTest( strcmp( b.getStr(), "abcdef" ) == 0 ); | 35 | unitTest( strcmp( b.getStr(), "abcdef" ) == 0 ); |
36 | } | 36 | } |
37 | 37 | ||
38 | test shared1 | ||
39 | { | ||
40 | Bu::String a("Hey there"); | ||
41 | Bu::String b( a ); | ||
42 | unitTest( a.getConstStr() == b.getConstStr() ); | ||
43 | b += " guy"; | ||
44 | unitTest( a.getConstStr() != b.getConstStr() ); | ||
45 | a = b; | ||
46 | unitTest( a.getConstStr() == b.getConstStr() ); | ||
47 | } | ||
48 | |||
49 | test insert | 38 | test insert |
50 | { | 39 | { |
51 | Bu::String a("abcd"); | 40 | Bu::String a("abcd"); |