Add tests and SDK

This commit is contained in:
Jérôme Leclercq
2021-05-17 23:08:37 +02:00
parent 26de5872eb
commit e716b44aa3
52 changed files with 539 additions and 276 deletions

View File

@@ -4,6 +4,8 @@
#include <chrono>
#include <thread>
std::filesystem::path GetResourceDir();
SCENARIO("Music", "[AUDIO][MUSIC]")
{
GIVEN("A music")
@@ -12,7 +14,7 @@ SCENARIO("Music", "[AUDIO][MUSIC]")
WHEN("We load our music")
{
REQUIRE(music.OpenFromFile("resources/Engine/Audio/The_Brabanconne.ogg"));
REQUIRE(music.OpenFromFile(GetResourceDir() / "Engine/Audio/The_Brabanconne.ogg"));
THEN("We can ask the informations of the file")
{