~pete-woods/unity-scopes-api/add-system-session-files

« back to all changes in this revision

Viewing changes to test/gtest/scopes/internal/Utils/Utils_test.cpp

  • Committer: Tarmac
  • Author(s): Michael Terry, Michael Terry
  • Date: 2016-10-17 11:46:55 UTC
  • mfrom: (163.80.4 turkish)
  • Revision ID: tarmac-20161017114655-9mp4cf3rgmt1e702
Fix reading scope metadata in a Turkish locale.

Approved by unity-api-1-bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
    EXPECT_EQ("foo-bar", uncamelcase("foo-Bar"));
38
38
}
39
39
 
 
40
TEST(Utils, uncamelcase_turkish)
 
41
{
 
42
    char *old_locale = strdup(getenv("LC_ALL"));
 
43
    setenv("LC_ALL", "tr_TR.UTF-8", 1);
 
44
 
 
45
    EXPECT_EQ("small-i", uncamelcase("smallI"));
 
46
 
 
47
    setenv("LC_ALL", old_locale, 1);
 
48
    free(old_locale);
 
49
}
 
50
 
40
51
TEST(Utils, convert_to)
41
52
{
42
53
    {