projects
/
ACL.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e4ea55
)
Added a test for += String operator
origin
author
Arjen Baart
<arjen@andromeda.nl>
Sun, 12 May 2019 16:37:53 +0000
(18:37 +0200)
committer
Arjen Baart
<arjen@andromeda.nl>
Sun, 12 May 2019 16:37:53 +0000
(18:37 +0200)
test/string_cat.cpp
patch
|
blob
|
history
diff --git
a/test/string_cat.cpp
b/test/string_cat.cpp
index
6dffb01
..
56c1da8
100644
(file)
--- a/
test/string_cat.cpp
+++ b/
test/string_cat.cpp
@@
-25,6
+25,11
@@
int main()
std::cout << s2 << " + " << s1 << " = " << s4 << "\n";
assert(s4 == "defabc");
+ s3 = s1;
+ s3 += s2;
+ std::cout << s1 << " += " << s2 << " = " << s3 << "\n";
+ assert(s3 == "abcdef");
+
return 0;
}