Browse Source

Add <lol/base/lolunit.h> header for unit tests.

wip/core-clipp
Sam Hocevar 4 years ago
parent
commit
c696030648
2 changed files with 2 additions and 16 deletions
  1. +0
    -4
      TODO.md
  2. +2
    -12
      include/lol/base/lolunit.h

+ 0
- 4
TODO.md View File

@@ -7,10 +7,6 @@
src/lol/math/noise/* src/lol/math/noise/*




## other headers to keep

tools/lolunit/lolunit.h

## headers we could clean up and keep ## headers we could clean up and keep


src/lol/algorithm/aabb_tree.h src/lol/algorithm/aabb_tree.h


legacy/lolunit/lolunit.h → include/lol/base/lolunit.h View File

@@ -1,7 +1,7 @@
// //
// Lol Engine — Unit test implementation // Lol Engine — Unit test implementation
// //
// Copyright © 2010—2016 Sam Hocevar <sam@hocevar.net>
// Copyright © 2010—2020 Sam Hocevar <sam@hocevar.net>
// //
// Lol Engine is free software. It comes without any warranty, to // Lol Engine is free software. It comes without any warranty, to
// the extent permitted by applicable law. You can redistribute it // the extent permitted by applicable law. You can redistribute it
@@ -14,23 +14,13 @@


// //
// The Unit test framework // The Unit test framework
// -----------------------
// ———————————————————————
// //


#include <iostream> #include <iostream>
#include <iomanip> #include <iomanip>
#include <sstream> #include <sstream>
#include <cstdio> #include <cstdio>
#if defined _XBOX
# include <xtl.h>
# undef near /* Fuck Microsoft */
# undef far /* Fuck Microsoft again */
#elif defined _WIN32
# define WIN32_LEAN_AND_MEAN
# include <windows.h>
# undef near /* Fuck Microsoft */
# undef far /* Fuck Microsoft again */
#endif


namespace lol namespace lol
{ {

Loading…
Cancel
Save