Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/onqtam/doctest.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoronqtam <vik.kirilov@gmail.com>2017-05-09 18:18:58 +0300
committeronqtam <vik.kirilov@gmail.com>2017-05-16 00:22:25 +0300
commit513cf695a2ddc9edec8fa9a1d5bd6cef0c0903ed (patch)
tree8aadd537cf33e2de191c773fa759b67efde227d2 /scripts/playground
parent458aea11e628e612e8e335d6bb4a6a3fc660d4d9 (diff)
implementation of a string class with a small buffer optimization - relates #69
Diffstat (limited to 'scripts/playground')
-rw-r--r--scripts/playground/test.cpp14
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);
+ }
+}