Added first compiling version

This commit is contained in:
Tobias Schmidl 2023-08-13 08:34:22 +02:00
parent 26d8821665
commit 5453f173ca
11 changed files with 370 additions and 0 deletions

25
test/source/glimpses.cpp Normal file
View file

@ -0,0 +1,25 @@
// SPDX-FileCopyrightText: 2023 Tobias Schmidl
//
// SPDX-License-Identifier: AGPL-3.0-or-later
#include <glimpses/glimpses.hpp>
#include <glimpses/version.h>
#include <string>
/*
TEST_CASE("Glimpses") {
using namespace greeter;
Glimpses greeter("Tests");
CHECK(greeter.greet(LanguageCode::EN) == "Hello, Tests!");
CHECK(greeter.greet(LanguageCode::DE) == "Hallo Tests!");
CHECK(greeter.greet(LanguageCode::ES) == "¡Hola Tests!");
CHECK(greeter.greet(LanguageCode::FR) == "Bonjour Tests!");
}
TEST_CASE("Glimpses version") {
static_assert(std::string_view(GREETER_VERSION) == std::string_view("1.0"));
CHECK(std::string(GREETER_VERSION) == std::string("1.0"));
}
*/

14
test/source/main.cpp Normal file
View file

@ -0,0 +1,14 @@
// SPDX-FileCopyrightText: 2023 Tobias Schmidl
//
// SPDX-License-Identifier: AGPL-3.0-or-later
#if 0
#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
#include <doctest/doctest.h>
#endif
int
main()
{
return 0;
}