From c3f6968411148fb9bd14300ba7fd1e1a4c7cd036 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kjist=C3=B3f?= Date: Sun, 23 Oct 2016 03:47:16 +0200 Subject: [PATCH] added a "manual" test, so the code can be profiled / leak checked in valgrind --- manualtest.cpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 manualtest.cpp diff --git a/manualtest.cpp b/manualtest.cpp new file mode 100644 index 0000000..355712d --- /dev/null +++ b/manualtest.cpp @@ -0,0 +1,22 @@ +#include +#include +#include"String.h" + + + +int main() +{ + String str1; + std::stringstream stream; + stream << "sajt"; + stream >> str1; + std::cout << str1 << std::endl; + String str2(" cicasajt"); + String str3(str2); + str2 = str1; + String str4(String("sajtos cica")); + str2 = String(" tihihi"); + std::cout << str4 + str3 << std::endl; + std::cout << ((str4 + str3)+=str2) << std::endl; + std::cout << str4[0] << static_cast(str2)[1] << std::endl; +} \ No newline at end of file