INNER CODE UNIT · C++

test_key

AsPJT/PAX_SAPIENTICA · Projects/IntegrationTest/AppStateManagerTest.cpp:100

    const std::uint_least32_t test_key = locale_keys[1]; // ja-JP を使用(デフォルトは en-US)

    app_state.setLanguageKey(test_key);

    EXPECT_EQ(received_key, test_key);
}

TEST_F(AppStateManagerTest, SetLanguageSameValueDoesNotPublish) {
    // FontSystem を初期化
    Fonts().initialize();

    AppStateManager app_state{};

    // 有効なロケールキーを使用(登録されている言語から取得)
    const std::vector<std::uint_least32_t>& locale_keys = Fonts().getOrderedLocales();
    ASSERT_GT(locale_keys.size(), 1); // 最低2つの言語が必要
    const std::uint_least32_t test_key = locale_keys[1]; // ja-JP を使用

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…