187d2adbcSAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 387d2adbcSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 487d2adbcSAndrew Rist * or more contributor license agreements. See the NOTICE file 587d2adbcSAndrew Rist * distributed with this work for additional information 687d2adbcSAndrew Rist * regarding copyright ownership. The ASF licenses this file 787d2adbcSAndrew Rist * to you under the Apache License, Version 2.0 (the 887d2adbcSAndrew Rist * "License"); you may not use this file except in compliance 987d2adbcSAndrew Rist * with the License. You may obtain a copy of the License at 1087d2adbcSAndrew Rist * 1187d2adbcSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 1287d2adbcSAndrew Rist * 1387d2adbcSAndrew Rist * Unless required by applicable law or agreed to in writing, 1487d2adbcSAndrew Rist * software distributed under the License is distributed on an 1587d2adbcSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 1687d2adbcSAndrew Rist * KIND, either express or implied. See the License for the 1787d2adbcSAndrew Rist * specific language governing permissions and limitations 1887d2adbcSAndrew Rist * under the License. 1987d2adbcSAndrew Rist * 2087d2adbcSAndrew Rist *************************************************************/ 2187d2adbcSAndrew Rist 2287d2adbcSAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove 25cdf0e10cSrcweir #include "precompiled_sal.hxx" 26cdf0e10cSrcweir 27*fd5f88ecSDamjan Jovanovic #include "gtest/gtest.h" 28cdf0e10cSrcweir #include "rtl/string.h" 29cdf0e10cSrcweir #include "rtl/ustring.hxx" 30cdf0e10cSrcweir 31cdf0e10cSrcweir namespace test { namespace oustring { 32cdf0e10cSrcweir 33*fd5f88ecSDamjan Jovanovic class Compare: public ::testing::Test 34cdf0e10cSrcweir { 35cdf0e10cSrcweir }; 36cdf0e10cSrcweir TEST_F(Compare,equalsIgnoreAsciiCaseAscii)37*fd5f88ecSDamjan JovanovicTEST_F(Compare, equalsIgnoreAsciiCaseAscii) 38cdf0e10cSrcweir { 39*fd5f88ecSDamjan Jovanovic ASSERT_TRUE(!rtl::OUString().equalsIgnoreAsciiCaseAscii("abc")); 40*fd5f88ecSDamjan Jovanovic ASSERT_TRUE(!rtl::OUString().equalsIgnoreAsciiCaseAsciiL( 41cdf0e10cSrcweir RTL_CONSTASCII_STRINGPARAM("abc"))); 42*fd5f88ecSDamjan Jovanovic ASSERT_TRUE(!rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("abc")). 43cdf0e10cSrcweir equalsIgnoreAsciiCaseAscii("")); 44*fd5f88ecSDamjan Jovanovic ASSERT_TRUE(!rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("abc")). 45cdf0e10cSrcweir equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM(""))); 46cdf0e10cSrcweir 47*fd5f88ecSDamjan Jovanovic ASSERT_TRUE(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("abc")). 48cdf0e10cSrcweir equalsIgnoreAsciiCaseAscii("abc")); 49*fd5f88ecSDamjan Jovanovic ASSERT_TRUE(!rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("abcd")). 50cdf0e10cSrcweir equalsIgnoreAsciiCaseAscii("abc")); 51*fd5f88ecSDamjan Jovanovic ASSERT_TRUE(!rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("abc")). 52cdf0e10cSrcweir equalsIgnoreAsciiCaseAscii("abcd")); 53cdf0e10cSrcweir } 54*fd5f88ecSDamjan Jovanovic 55*fd5f88ecSDamjan Jovanovic } } 56*fd5f88ecSDamjan Jovanovic 57*fd5f88ecSDamjan Jovanovic 58