Files
PowerShell/test/test-locale.cpp
T
Andrew Schwartzmeyer 6e85659672 Rename tests to test
Requires moving a submodule, so its better to do it now when everything
is moving.
2016-01-14 10:24:16 -08:00

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"));
}