Restructure test source folders
This commit is contained in:
parent
d3a072fb63
commit
bc7258006c
12 changed files with 20 additions and 29 deletions
2
test/src/CatchMain.cpp
Normal file
2
test/src/CatchMain.cpp
Normal file
|
@ -0,0 +1,2 @@
|
|||
#define CATCH_CONFIG_MAIN
|
||||
#include <catch.hpp>
|
|
@ -1,8 +1,6 @@
|
|||
#define CATCH_CONFIG_MAIN
|
||||
|
||||
#include <SFML/Graphics/Rect.hpp>
|
||||
#include <SFML/System/Vector2.hpp>
|
||||
#include "TestUtilities/Graphics.hpp"
|
||||
#include "GraphicsUtil.hpp"
|
||||
|
||||
TEST_CASE("sf::Rect class template", "[graphics]")
|
||||
{
|
|
@ -1,7 +1,5 @@
|
|||
#define CATCH_CONFIG_MAIN
|
||||
|
||||
#include <SFML/System/Vector2.hpp>
|
||||
#include "TestUtilities/System.hpp"
|
||||
#include "SystemUtil.hpp"
|
||||
|
||||
// Use sf::Vector2i for tests. Test coverage is given, as there are no template specializations.
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
#include <SFML/System/Vector3.hpp>
|
||||
#include "TestUtilities/System.hpp"
|
||||
#include "SystemUtil.hpp"
|
||||
|
||||
// Use sf::Vector3i for tests. Test coverage is given, as there are no template specializations.
|
||||
|
|
@ -6,7 +6,7 @@
|
|||
#ifndef SFML_TESTUTILITIES_GRAPHICS_HPP
|
||||
#define SFML_TESTUTILITIES_GRAPHICS_HPP
|
||||
|
||||
#include "Window.hpp"
|
||||
#include "WindowUtil.hpp"
|
||||
|
||||
// Forward declarations for non-template types
|
||||
namespace sf
|
|
@ -6,7 +6,7 @@
|
|||
#ifndef SFML_TESTUTILITIES_WINDOW_HPP
|
||||
#define SFML_TESTUTILITIES_WINDOW_HPP
|
||||
|
||||
#include "System.hpp"
|
||||
#include "SystemUtil.hpp"
|
||||
|
||||
#include <SFML/Graphics/Rect.hpp>
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
#define CATCH_CONFIG_MAIN
|
||||
|
||||
#include <SFML/Graphics/Rect.hpp>
|
||||
#include <SFML/System/Vector2.hpp>
|
||||
#include "TestUtilities/Window.hpp"
|
||||
|
||||
TEST_CASE("Window unit test exists", "[window]")
|
||||
{
|
||||
CHECK(TRUE);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue