]>
git.saurik.com Git - apple/icu.git/blob - icuSources/test/intltest/itspoof.h
1 // © 2016 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
4 **********************************************************************
5 * Copyright (C) 2011-2013, International Business Machines Corporation
6 * and others. All Rights Reserved.
7 **********************************************************************
11 * IntlTestSpoof is the top level test class for the Unicode Spoof detection tests
14 #ifndef INTLTESTSPOOF_H
15 #define INTLTESTSPOOF_H
17 #include "unicode/utypes.h"
18 #if !UCONFIG_NO_REGULAR_EXPRESSIONS && !UCONFIG_NO_NORMALIZATION && !UCONFIG_NO_FILE_IO
19 #include "unicode/uspoof.h"
23 class IntlTestSpoof
: public IntlTest
{
25 void runIndexedTest( int32_t index
, UBool exec
, const char* &name
, char* par
= NULL
);
27 // Test the USpoofDetector API functions that require C++
28 // The pure C part of the API, which is most of it, is tested in cintltst
33 void testAreConfusable();
43 void testRestrictionLevel();
45 void testMixedNumbers();
53 void testBug13314_MixedNumbers();
55 void testBug13328_MixedCombiningMarks();
57 void testCombiningDot();
59 // Internal function to run a single skeleton test case.
60 void checkSkeleton(const USpoofChecker
*sc
, uint32_t flags
,
61 const char *input
, const char *expected
, int32_t lineNum
);
64 #endif // !UCONFIG_NO_REGULAR_EXPRESSIONS && !UCONFIG_NO_NORMALIZATION && !UCONFIG_NO_FILE_IO