diff options
author | onqtam <vik.kirilov@gmail.com> | 2017-05-09 18:18:58 +0300 |
---|---|---|
committer | onqtam <vik.kirilov@gmail.com> | 2017-05-16 00:22:25 +0300 |
commit | 513cf695a2ddc9edec8fa9a1d5bd6cef0c0903ed (patch) | |
tree | 8aadd537cf33e2de191c773fa759b67efde227d2 /scripts/playground | |
parent | 458aea11e628e612e8e335d6bb4a6a3fc660d4d9 (diff) |
implementation of a string class with a small buffer optimization - relates #69
Diffstat (limited to 'scripts/playground')
-rw-r--r-- | scripts/playground/test.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/playground/test.cpp b/scripts/playground/test.cpp index ba19fc62..fa69aac1 100644 --- a/scripts/playground/test.cpp +++ b/scripts/playground/test.cpp @@ -1,5 +1,19 @@ //#define DOCTEST_CONFIG_DISABLE +//#define DOCTEST_CONFIG_SUPER_FAST_ASSERTS #include "parts/doctest_fwd.h" +#include <stdlib.h> #include <iostream> using namespace std; + +void* operator new(std::size_t count) { return malloc(count); } +void* operator new[](std::size_t count) { return malloc(count); } + +TEST_CASE("") { + for(int i = 0; i < 10; ++i) { + //FAST_CHECK_EQ(i, i); + INFO(i); + //MESSAGE(i); + CHECK(i == i); + } +} |