Skip to content

Commit

Permalink
fixed #28
Browse files Browse the repository at this point in the history
  • Loading branch information
onqtam committed Sep 21, 2016
1 parent bcd5c9f commit 901a333
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 4 deletions.
7 changes: 5 additions & 2 deletions doctest/doctest.h
Expand Up @@ -1450,7 +1450,7 @@ namespace detail
};

ContextState*& getContextState();
#endif
#endif // DOCTEST_CONFIG_DISABLE
} // namespace detail

String::String(const char* in) {
Expand Down Expand Up @@ -1944,7 +1944,7 @@ namespace detail
switch(code) {
case Color::Red: col = "[0;31m"; break;
case Color::Green: col = "[0;32m"; break;
case Color::Blue: col = "[0:34m"; break;
case Color::Blue: col = "[0;34m"; break;
case Color::Cyan: col = "[0;36m"; break;
case Color::Yellow: col = "[0;33m"; break;
case Color::Grey: col = "[1;30m"; break;
Expand Down Expand Up @@ -2816,6 +2816,9 @@ int Context::run() {
DOCTEST_PRINTF_COLORED(buff, Color::None);
}

// remove any coloring
DOCTEST_PRINTF_COLORED("", Color::None);

getContextState() = 0;

if(numFailed && !p->no_exitcode)
Expand Down
3 changes: 3 additions & 0 deletions doctest/parts/doctest_impl.h
Expand Up @@ -1591,6 +1591,9 @@ int Context::run() {
DOCTEST_PRINTF_COLORED(buff, Color::None);
}

// remove any coloring
DOCTEST_PRINTF_COLORED("", Color::None);

getContextState() = 0;

if(numFailed && !p->no_exitcode)
Expand Down
21 changes: 19 additions & 2 deletions scripts/random_dev_notes.md
@@ -1,15 +1,32 @@
email to L Dionne
how travis started working:
- creating that folder
- upgraded cmake
- -l c++ flag?

#define DYNAMIX_VERSION (DYNAMIX_VERSION_MAJOR*10000 + DYNAMIX_VERSION_MINOR*100 + DYNAMIX_VERSION_SUB_MINOR)

mingw on appveyor - https://github.com/boost-experimental/di/blob/cpp14/.appveyor.yml
https://github.com/boostorg/hana/blob/master/.appveyor.yml

- llvm - https://github.com/boostorg/hana/commit/f08e824a34cc4e6e850fee285f3d182f95440f60
https://github.com/boost-experimental/di/blob/cpp14/.travis.yml

_LIBCPP_BEGIN_NAMESPACE_STD
https://github.com/boost-experimental/di/blob/cpp14/include/boost/di.hpp

- patreon

- mocking - google mock assertion macros

- should check the expression decomposer - if it copies by value anything

- nullptr trouble

- add underscores to all preprocessor identifiers not intended for use by the user

- users.md - projects that use doctest

- color::none after doctest

- tests in a static library without the implementation there - problematic

- multiple subcases per line
Expand Down

0 comments on commit 901a333

Please sign in to comment.