From 8f76c2ace7d74c6382b398126f1dcd8cda617d29 Mon Sep 17 00:00:00 2001 From: Marcelo Lira Date: Sun, 22 Nov 2009 13:33:54 -0300 Subject: Added a great deal of tests to virtual method modification cases. --- tests/libsample/str.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests/libsample/str.cpp') 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 { -- cgit v1.2.3