mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
Requires moving a submodule, so its better to do it now when everything is moving.
22 lines
472 B
C++
22 lines
472 B
C++
//! @file test-locale.cpp
|
|
//! @author Alex Jordan <v-alexjo@microsoft.com>
|
|
//! @brief Unit tests for linux locale
|
|
|
|
#include <gtest/gtest.h>
|
|
#include <langinfo.h>
|
|
#include <locale.h>
|
|
#include <string>
|
|
#include <stdio.h>
|
|
//! Test fixture for LocaleTest
|
|
|
|
class LocaleTest : public ::testing::Test
|
|
{
|
|
};
|
|
|
|
TEST_F(LocaleTest, Success)
|
|
{
|
|
setlocale (LC_ALL, "");
|
|
ASSERT_FALSE (nl_langinfo(CODESET) == NULL);
|
|
ASSERT_TRUE(nl_langinfo(CODESET) == std::string("UTF-8"));
|
|
}
|