xref: /llvm-project/libc/test/src/locale/localeconv_test.cpp (revision 78d8ab2ab9e9f48e72597b5642285a5bbfcb75a5)
1*78d8ab2aSJoseph Huber //===-- Unittests for localeconv ------------------------------------------===//
2*78d8ab2aSJoseph Huber //
3*78d8ab2aSJoseph Huber // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4*78d8ab2aSJoseph Huber // See https://llvm.org/LICENSE.txt for license information.
5*78d8ab2aSJoseph Huber // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6*78d8ab2aSJoseph Huber //
7*78d8ab2aSJoseph Huber //===----------------------------------------------------------------------===//
8*78d8ab2aSJoseph Huber 
9*78d8ab2aSJoseph Huber #include "include/llvm-libc-macros/locale-macros.h"
10*78d8ab2aSJoseph Huber #include "src/locale/localeconv.h"
11*78d8ab2aSJoseph Huber 
12*78d8ab2aSJoseph Huber #include "test/UnitTest/Test.h"
13*78d8ab2aSJoseph Huber 
14*78d8ab2aSJoseph Huber TEST(LlvmLibcLocale, DefaultLocale) {
15*78d8ab2aSJoseph Huber   struct lconv *conv = LIBC_NAMESPACE::localeconv();
16*78d8ab2aSJoseph Huber   EXPECT_STREQ(conv->decimal_point, ".");
17*78d8ab2aSJoseph Huber }
18