mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-10-02 10:53:44 +00:00
The NexusDashboard-parity dashboard (dDashboardServer) and everything built on it on the experimental branch: accounts, characters, properties and moderation tools, permissions shared with in-game slash commands, economy reports, World 3D and property 3D views with client scenery, scheduled events (features, vanity changes, live events, announcements, restarts), vanity files and events, the CDClient browser, the message inspector with saved captures, chat filter tools, community challenges, live ops, the AI moderator helper, and the server-side changes they need. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
24 lines
961 B
C++
24 lines
961 B
C++
#include <gtest/gtest.h>
|
|
|
|
#include "GameLabels.h"
|
|
#include "IEconomyLedger.h"
|
|
#include "StatisticID.h"
|
|
|
|
TEST(GameLabelsTests, NamesComeFromTheEnums) {
|
|
EXPECT_EQ(GameLabels::Words("FORUM_MODERATOR"), "Forum Moderator");
|
|
EXPECT_EQ(GameLabels::Name(VAULT_MODELS), "Vault Models");
|
|
EXPECT_EQ(GameLabels::Name(PropertyPrivacyOption::Friends), "Friends");
|
|
|
|
const auto& labels = GameLabels::Json();
|
|
ASSERT_EQ(labels["gmLevels"].size(), 10u);
|
|
EXPECT_EQ(labels["gmLevels"][9]["name"], "Operator");
|
|
for (const auto& inventory : labels["inventories"]) EXPECT_NE(inventory["value"], static_cast<int>(ALL));
|
|
EXPECT_EQ(labels["privacy"][1]["name"], "Friends");
|
|
}
|
|
|
|
TEST(GameLabelsTests, CamelCaseNamesAreSplitIntoWords) {
|
|
EXPECT_EQ(GameLabels::Words("SmashablesSmashed"), "Smashables Smashed");
|
|
EXPECT_EQ(GameLabels::Name(TimeAirborneInCar), "Time Airborne In Car");
|
|
EXPECT_EQ(GameLabels::Name(IEconomyLedger::eMapEvent::PLAYER_COIN_DROPS), "Player Coin Drops");
|
|
}
|