feat: first working set
This commit is contained in:
parent
cccebf674a
commit
bed7360063
5 changed files with 59 additions and 42 deletions
|
@ -2,24 +2,21 @@
|
|||
//
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
#include <catch2/catch_test_macros.hpp>
|
||||
#include <glimpses/glimpses.hpp>
|
||||
#include <glimpses/version.h>
|
||||
|
||||
#include <string>
|
||||
/*
|
||||
TEST_CASE("Glimpses") {
|
||||
using namespace greeter;
|
||||
|
||||
Glimpses greeter("Tests");
|
||||
TEST_CASE("CPU count")
|
||||
{
|
||||
|
||||
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!");
|
||||
glimpses::Glimpses glimpses{};
|
||||
|
||||
CHECK(glimpses.getCPUCount().size() > 0);
|
||||
}
|
||||
|
||||
TEST_CASE("Glimpses version") {
|
||||
static_assert(std::string_view(GREETER_VERSION) == std::string_view("1.0"));
|
||||
/*
|
||||
TEST_CASE("Glimpses version") { static_assert(std::string_view(GREETER_VERSION) == std::string_view("0.1.0"));
|
||||
CHECK(std::string(GREETER_VERSION) == std::string("1.0"));
|
||||
}
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue