diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2009-11-22 13:33:54 -0300 |
---|---|---|
committer | Marcelo Lira <marcelo.lira@openbossa.org> | 2009-11-23 11:48:03 -0300 |
commit | 8f76c2ace7d74c6382b398126f1dcd8cda617d29 (patch) | |
tree | 490ad3f97380d9ec4dff967747076a8cf2078d35 /tests/libsample/str.cpp | |
parent | c48f9163b42c20c91c33183a1835e0b356f104dc (diff) |
Added a great deal of tests to virtual method modification cases.
Diffstat (limited to 'tests/libsample/str.cpp')
-rw-r--r-- | tests/libsample/str.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/libsample/str.cpp b/tests/libsample/str.cpp index 5c77979b9..bd7076087 100644 --- a/tests/libsample/str.cpp +++ b/tests/libsample/str.cpp @@ -80,6 +80,13 @@ Str::append(const Str& s) return *this; } +Str& +Str::prepend(const Str& s) +{ + m_str = s.m_str + m_str; + return *this; +} + const char* Str::cstring() const { |